mirror of
https://codeberg.org/NLnet/takentaal.git
synced 2025-10-25 09:04:35 +00:00
Antlr grammar for defining tasks.
- Use START_AMOUNT instead of "{" so it is parsed before TEXT
- Allow only one plan and make the structure hierarchical
- Add a header with version number
- Put the amount at the start of the line to simplify parsing and
make it easier to align amounts
|
||
|---|---|---|
| .gitignore | ||
| example | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| takentaal.g4 | ||
takentaal
Commands
nix develop
# Inspect lexer
antlr4-parse takentaal.g4 takentaal example -tokens
# Inspect parser
antlr4-parse takentaal.g4 takentaal example -tree
antlr4-parse takentaal.g4 takentaal example -gui
# Generate TypeScript parser
antlr4 -Dlanguage=TypeScript -o takentaal takentaal.g4