diff options
author | JSDurand <mmemmew@gmail.com> | 2023-07-21 16:21:00 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2023-07-21 16:21:00 +0800 |
commit | 201830e33ab5c45044e960217e0ac8803e3e134d (patch) | |
tree | b5e2f6275cf3245cc155cfabaac91beab56df75a /grammar | |
parent | 659c2195d2c224122cc8da813bec3af46084b61b (diff) |
Add variations to the test
Add an intentionally ambiguous grammar for testing purposes.
It seems to work fine.
Diffstat (limited to 'grammar')
-rw-r--r-- | grammar/abnf grammars/test.abnf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grammar/abnf grammars/test.abnf b/grammar/abnf grammars/test.abnf index c960577..1c3a884 100644 --- a/grammar/abnf grammars/test.abnf +++ b/grammar/abnf grammars/test.abnf @@ -2,6 +2,8 @@ document = 1*( item ) item = header [ price ] *1( note ) +item =/ header [ price ] *1( note ) + header = *1star "SP" title %xA *( "SP" / %xA ) title = 1*"TEXT" |