From 691f969eb104fa3d4c2a1667693fd0382eb9d6b5 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 8 Jul 2023 12:28:15 +0800 Subject: adding test grammar and test document Adding a grammar and a document for testing purposes. --- grammar/abnf grammars/test.abnf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 grammar/abnf grammars/test.abnf (limited to 'grammar/abnf grammars/test.abnf') diff --git a/grammar/abnf grammars/test.abnf b/grammar/abnf grammars/test.abnf new file mode 100644 index 0000000..c960577 --- /dev/null +++ b/grammar/abnf grammars/test.abnf @@ -0,0 +1,15 @@ +document = 1*( item ) + +item = header [ price ] *1( note ) + +header = *1star "SP" title %xA *( "SP" / %xA ) + +title = 1*"TEXT" + +star = %x2A + +note = "note:" note-content %xA *( "SP" / %xA ) + +note-content = 1*"TEXT" + +price = "price:" "SP" 1*"DIGIT" %xA *( "SP" / %xA ) -- cgit v1.2.3-18-g5258