This repository has been archived on 2024-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
trixy/trixy-parser
Benedikt Peetz bf3eb61110
feat(parser/lexing): Desugger doc comments by running a regex on the file
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.
2024-03-24 18:09:57 +01:00
..
docs chore(treewide): Add the new license header 2024-02-19 16:13:55 +01:00
example style(treewide): Reformat with treefmt (`nix fmt`) 2024-02-19 20:53:11 +01:00
src feat(parser/lexing): Desugger doc comments by running a regex on the file 2024-03-24 18:09:57 +01:00
.gitignore chore(treewide): Move the trixy subcrates under one trixy crate 2023-12-26 12:14:08 +01:00
Cargo.toml chore(treewide): Add the new license header 2024-02-19 16:13:55 +01:00
README.md style(treewide): Reformat with treefmt (`nix fmt`) 2024-02-19 20:53:11 +01:00
generate_docs chore(treewide): Add the new license header 2024-02-19 16:13:55 +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.

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.