Jos van den Oever
304f90a0b5
Add a grammar for an amendment
...
and remove the amendment-specific token from the plan grammar
2024-09-04 16:38:41 +02:00
Jos van den Oever
919f6a6363
Allow spaces after the int in an amount
2024-09-02 15:22:22 +02:00
Jos van den Oever
c116614208
Split up description text into smaller tokens so they have lowest precedence
...
Tokens that should appear at the start of a line are now prepended with EOL
to make them precise.
2024-09-02 14:15:32 +02:00
Jos van den Oever
f9e92b8152
Split description text into character tokens so that text has a lower ranking
2024-09-02 14:00:51 +02:00
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
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