mirror of
https://codeberg.org/NLnet/takentaal.git
synced 2025-08-30 14:30:08 +00:00
feat: improve
This commit is contained in:
parent
7c26274bda
commit
d924d61d56
2 changed files with 14 additions and 10 deletions
1
example
1
example
|
@ -6,6 +6,7 @@ This is the description of the entire work plan.
|
|||
|
||||
This is the description of the first task.
|
||||
This line is still part of the first paragraph of the description.
|
||||
This description has # symbols and ü © Ð Latin-1 chars.
|
||||
|
||||
This is a second paragraph of that description.
|
||||
|
||||
|
|
21
takentaal.g4
21
takentaal.g4
|
@ -8,7 +8,7 @@ line
|
|||
: plan
|
||||
| task
|
||||
| subtask
|
||||
| comment
|
||||
| description
|
||||
;
|
||||
|
||||
plan
|
||||
|
@ -42,14 +42,14 @@ subtask_obsolete
|
|||
: SUBTASK_OBSOLETE_TOKEN TEXT amount?
|
||||
;
|
||||
|
||||
comment
|
||||
: TEXT
|
||||
;
|
||||
|
||||
amount
|
||||
: '{' INT '}'
|
||||
;
|
||||
|
||||
description
|
||||
: TEXT
|
||||
;
|
||||
|
||||
PLAN_TOKEN
|
||||
: '# '
|
||||
;
|
||||
|
@ -78,7 +78,6 @@ WS
|
|||
: [ \r\n\t]+ -> skip
|
||||
;
|
||||
|
||||
|
||||
TEXT
|
||||
: TEXTHEAD TEXTBODY*
|
||||
;
|
||||
|
@ -87,16 +86,20 @@ INT
|
|||
: DIGIT+
|
||||
;
|
||||
|
||||
fragment LETTER
|
||||
: [a-zA-Z\u0080-\u00FF_]
|
||||
;
|
||||
|
||||
fragment DIGIT
|
||||
: [0-9]
|
||||
;
|
||||
|
||||
fragment TEXTHEAD
|
||||
: [a-zA-Z]
|
||||
: LETTER
|
||||
;
|
||||
|
||||
fragment TEXTBODY
|
||||
: TEXTHEAD
|
||||
: LETTER
|
||||
| DIGIT
|
||||
| [_()., ]
|
||||
| [_().,# ]
|
||||
;
|
Loading…
Add table
Add a link
Reference in a new issue