Benedikt Peetz
70c4cc6f18
Parsing right now works by simply comparing the input string: ``` "/" -> <comment_tokenizer> -> "/" -> <normal_comment> |-> "//" -> <doc_comment> ``` A better method to do this though would be to turn "//" and "///" into keywords and simply leave the parsing to the parser module not the tokenizer. |
||
---|---|---|
.. | ||
docs | ||
example | ||
src | ||
.gitignore | ||
Cargo.toml | ||
README.md | ||
generate_docs |
README.md
trixy-lang_parser
This crate contains a parser (and lexer) for the Trixy language. The corresponding grammar is in the grammar file here encoded in Extended Backus-Naur Form.
Docs
Run ./generate_docs
to turn the grammar file into railroad diagrams.