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_PlainWords.py | |
| parent | 90d5b0125fb943eea852ab14ed7a8243c86d7d21 (diff) | |
fix replace Optional(...) with Choice(0, ... , Skip())
Diffstat (limited to 'def_PlainWords.py')
| -rwxr-xr-x | def_PlainWords.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/def_PlainWords.py b/def_PlainWords.py index 098c3d6..ebbe38b 100755 --- a/def_PlainWords.py +++ b/def_PlainWords.py @@ -9,9 +9,12 @@ from railroad import * Diagram( Start("complex"), NonTerminal("PRINTABLES"), - ZeroOrMore( - NonTerminal("_"), - NonTerminal("PRINTABLES") + Choice(0, + OneOrMore( + NonTerminal("_"), + NonTerminal("PRINTABLES") + ), + Skip() ), End("complex") ).writeStandalone( |
