summaryrefslogtreecommitdiff
path: root/grammar/abnf grammars
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-07-21 16:21:00 +0800
committerJSDurand <mmemmew@gmail.com>2023-07-21 16:21:00 +0800
commit201830e33ab5c45044e960217e0ac8803e3e134d (patch)
treeb5e2f6275cf3245cc155cfabaac91beab56df75a /grammar/abnf grammars
parent659c2195d2c224122cc8da813bec3af46084b61b (diff)
Add variations to the test
Add an intentionally ambiguous grammar for testing purposes. It seems to work fine.
Diffstat (limited to 'grammar/abnf grammars')
-rw-r--r--grammar/abnf grammars/test.abnf2
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"