Hacker News new | ask | show | jobs
by BazookaMusic 1766 days ago
The code isn't perfect, it's a learning project and still WIP, but you can check the code for a parser for the LOX language ( c-like) from 'Crafting Interpreters' in this project. 'Ast.fs' and 'Parser.fs' should be enough to get an idea of what it's doing.You can also google the grammar of the language which is quite simple:

https://github.com/BazookaMusic/FLOX