mirror of
https://codeberg.org/NLnet/takentaal.git
synced 2025-08-29 14:00:06 +00:00
Add a grammar for an amendment
and remove the amendment-specific token from the plan grammar
This commit is contained in:
parent
f1c236c751
commit
304f90a0b5
4 changed files with 95 additions and 80 deletions
|
@ -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
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue