Benedikt Peetz
f1e9087f40
Previously we actually supported parsing doc comments (`///`), but replacing them before parsing allows for simplifications in the lexer. Precisely, that means that we can add support for attributes without having to maintain the doc comment parser. |
||
---|---|---|
.. | ||
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.
Testing
A binary (trixy-parser
) exists, which provides easy access to the different library
parsing steps
Docs
Run ./generate_docs
to turn the grammar file into railroad diagrams.