diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-05-18 13:53:00 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-05-18 14:05:03 +0200 |
| commit | b1ebaac5c08407ddd680041cae918b9341fea5be (patch) | |
| tree | c586914a3799869afbde8cee60ed07736366a3bb /def_Paragraph.py | |
| parent | 90d5b0125fb943eea852ab14ed7a8243c86d7d21 (diff) | |
fix replace Optional(...) with Choice(0, ... , Skip())
Diffstat (limited to 'def_Paragraph.py')
| -rwxr-xr-x | def_Paragraph.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/def_Paragraph.py b/def_Paragraph.py index 90a7816..d5bd00e 100755 --- a/def_Paragraph.py +++ b/def_Paragraph.py @@ -9,9 +9,12 @@ from railroad import * Diagram( Start("complex"), NonTerminal("Words"), - ZeroOrMore( - NonTerminal("HardBreak"), - NonTerminal("Words") + Choice(0, + OneOrMore( + NonTerminal("HardBreak"), + NonTerminal("Words") + ), + Skip() ), OneOrMore( NonTerminal("NEWLINE") |
