1
0
Fork 0
trinitrix/trixy/trixy-lang_parser
Benedikt Peetz 70c4cc6f18
feat(trixy-lang_parser): Add support for doc comments
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.
2023-12-22 20:32:43 +01:00
..
docs feat(trixy-lang_parser): Add support for doc comments 2023-12-22 20:32:43 +01:00
example feat(trixy-lang_parser): Add support for doc comments 2023-12-22 20:32:43 +01:00
src feat(trixy-lang_parser): Add support for doc comments 2023-12-22 20:32:43 +01:00
.gitignore feat(trixy-lang_parser): Add first parser pass 2023-12-18 18:04:21 +01:00
Cargo.toml feat(trixy-lang_parser): Add a lexer with error handling for trixy code 2023-12-16 11:45:23 +01:00
README.md feat(trixy-lang_parser): Add first parser pass 2023-12-18 18:04:21 +01:00
generate_docs feat(trixy-lang_parser): Add support for doc comments 2023-12-22 20:32:43 +01:00

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.