News for hackers. Stuff that matters.
Re:New embedded programming language with C as a host language by xigoi on Tuesday July 26, 2022 @02:57AM (#32235215)
Please stop reusing extensions. “.v” is already used by Coq and by V.
Re:New embedded programming language with C as a host language by dsvr on Tuesday July 26, 2022 @04:41AM (#32235819)
At the time I didn't know that. Perhaps .vely extension, I guess that would do it. Something to consider to be nice for sure. Thanks for that.
Re:New embedded programming language with C as a host language by forgotpwd16 on Tuesday July 26, 2022 @04:45AM (#32235841)
And Verilog. Not that it matters much since tools can utilize heuristics to figure out the actual language used.
Re:New embedded programming language with C as a host language by xigoi on Tuesday July 26, 2022 @07:06AM (#32236720)
How do you use heuristics when creating a new file?
Re:New embedded programming language with C as a host language by dsvr on Tuesday July 26, 2022 @01:25PM (#32241156)
In this case, just check if there is, near the beginning of file:

#include "vely.h"

which has to be in every Vely .v file.

Re:New embedded programming language with C as a host language by xigoi on Tuesday July 26, 2022 @01:33PM (#32241249)
A new file won't have that at the top. Unless you create it first by copying a template, I guess.
Re:New embedded programming language with C as a host language by hydroid7 on Tuesday July 26, 2022 @07:22AM (#32236821)
And Verilog