From 201830e33ab5c45044e960217e0ac8803e3e134d Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 21 Jul 2023 16:21:00 +0800 Subject: Add variations to the test Add an intentionally ambiguous grammar for testing purposes. It seems to work fine. --- grammar/abnf grammars/test.abnf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'grammar') 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" -- cgit v1.2.3-18-g5258