Hey. So a few weeks ago I implemented the Zephyr ASDL domain-specific language which is used to generate ASTs in C. ASDL is very useful in language development. Although I myself would like to turn it into a Perl script, or maybe a Ruby or a Python script instead of a stand-alone C program. Whilst I was making it, I thought maybe it would be cool to add my own asdl.vim
which I had been using to the source tree. So I added it to /companions/asdl.vim
, and also installs to /usr/share/doc/asdl when you install it. You can find asdl.vim
in the companions.
I’m pretty new to defining syntax highlighters for NeoVim/Vim. I struggled to have asdl.vim
include C code, but I failed :( Although I managed to make a good Vmgen embedding of C code.
Another language that I myself have not implemented, but use frequently is Vmgen. It’s a part of Gforth, it’s used to generate Vms for interpreters.
Now, I have also defined a highlighter for my own superset of EBNF which is very useful IMO.
You can find ebnf.vim
and vmgen.vim
here:
https://gist.github.com/Chubek/37fa48239ac0de78da45475d9533b123
I know these are very basic definitions and not nearly as cool as the ones you guys probably make. But as I said I have so little time during the day, and I am trying to hack my way through learning VimScript.
Thanks.