Antlr grammar for defining tasks.
Find a file
Jos van den Oever 6a68ed3140 Reorganize the grammar
- 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
2024-08-29 17:47:12 +02:00
.gitignore feat: add instructions for TS parser generation 2024-08-13 16:44:34 +02:00
example Reorganize the grammar 2024-08-29 17:47:12 +02:00
flake.lock init 2024-08-12 10:47:19 +02:00
flake.nix init 2024-08-12 10:47:19 +02:00
README.md fix: bad code block 2024-08-26 10:27:12 +02:00
takentaal.g4 Reorganize the grammar 2024-08-29 17:47:12 +02:00

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