Commit graph

15 commits

Author SHA1 Message Date
Jos van den Oever
c0b60b1c4f Add more characters that should be ommitted from STARTCHAR
and add an explanation for why this is the case.
2024-09-02 12:49:56 +02:00
Jos van den Oever
ecc5a1aa00 Disallow { and space in STARTCHAR
This solved parsing the example, but is suboptimal. The real fix is to
know why STARTCHAR takes precedence over S and START_AMOUNT
2024-09-02 10:37:56 +02:00
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
Jos van den Oever
5298c9e97a Make the line non-terminal an actual line
by removing \n and \r from the WS terminal.
2024-08-28 17:27:59 +02:00
Yarmo Mackenbach
ddfdeb7224
fix: rule priority 2024-08-27 11:37:18 +02:00
Yarmo Mackenbach
b2f633ab50
feat: use unicode blocks 2024-08-27 09:32:36 +02:00
Yarmo Mackenbach
8f0a2c1e06
feat: allow more symbols 2024-08-26 14:04:29 +02:00
Yarmo Mackenbach
98b4a304d7
fix: bad code block 2024-08-26 10:27:12 +02:00
Yarmo Mackenbach
1e4561880b
feat: add instructions for TS parser generation 2024-08-13 16:44:34 +02:00
Yarmo Mackenbach
d924d61d56
feat: improve 2024-08-13 12:17:09 +02:00
Yarmo Mackenbach
7c26274bda
feat: reuse DIGIT rule 2024-08-12 10:52:45 +02:00
Yarmo Mackenbach
3138a4c499
feat: use optional 2024-08-12 10:52:12 +02:00
Yarmo Mackenbach
0fc0a098b4
feat: reorder 2024-08-12 10:50:36 +02:00
Yarmo Mackenbach
72737335de
fix: amount as parser rule 2024-08-12 10:50:10 +02:00
Yarmo Mackenbach
dad77f64ec
init 2024-08-12 10:47:19 +02:00