0.0.6 • Published 1 year ago
jome.js v0.0.6
jomec
jomec is the Jome compiler.
Compiling steps
Compiling Jome code into JavaScript code is done in many steps.
- tokenizer: The code is broken down into tokens.
- parser: The tokens are parsed into an Abstract Syntax Tree.
- validator: Each node of the abstract syntax tree is validated in a first pass.
- code generator: The tree is compiled into JavaScript.
Tokenizer
Right now, a text mate tokenizer is used so I get syntax highlighting and it's easy to debug with vscode. Later a more optimized one will be used.