logoalt Hacker News

adsharma • today at 12:05 AM • 1 reply • view on HN

Why not use vlang?

I wanted to do the same thing to python. So wrote a parser for a variant of python.

It's spy-ast on pypi


Replies

stass • today at 4:17 AM

Just checked spy-ast, it looks cool! I like how it's trying to approach the same problem from a different angle for a dynamically typed language.

I picked OCaml vs vlang mostly because I'm more familiar with it and it's so well suited for parsers/compilers with its ADTs and pattern matching -- ironically the same features I wanted to add to C. It has a great ecosystem of existing tools and packages as well and cross-platform support, which is good for portability.