Add a grammar for an amendment

and remove the amendment-specific token from the plan grammar
This commit is contained in:
Jos van den Oever 2024-09-04 16:38:13 +02:00
parent f1c236c751
commit 304f90a0b5
4 changed files with 95 additions and 80 deletions

View file

@ -6,12 +6,12 @@
nix develop
# Inspect lexer
antlr4-parse takentaal.g4 takentaal example -tokens
antlr4-parse takentaal.g4 takentaal plan_example -tokens
# Inspect parser
antlr4-parse takentaal.g4 takentaal example -tree
antlr4-parse takentaal.g4 takentaal example -gui
antlr4-parse takentaal.g4 takentaal plan_example -tree
antlr4-parse takentaal.g4 takentaal plan_example -gui
# Generate TypeScript parser
antlr4 -Dlanguage=TypeScript -o takentaal takentaal.g4
```
```