summaryrefslogtreecommitdiff
path: root/grammar
diff options
context:
space:
mode:
Diffstat (limited to 'grammar')
-rw-r--r--grammar/abnf grammars/test.abnf15
1 files changed, 15 insertions, 0 deletions
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 )