From 17a3ea880402338420699e03bcb24181e4ff3924 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Thu, 2 May 2024 20:27:40 +0200 Subject: Initial commit Based on dc4ba6a --- src/querykv1/grammar.ebnf.bak | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/querykv1/grammar.ebnf.bak (limited to 'src/querykv1/grammar.ebnf.bak') diff --git a/src/querykv1/grammar.ebnf.bak b/src/querykv1/grammar.ebnf.bak new file mode 100644 index 0000000..b5acbf5 --- /dev/null +++ b/src/querykv1/grammar.ebnf.bak @@ -0,0 +1,23 @@ +document ::= (header NEWLINE)? (comment | record | empty-line) (NEWLINE (comment | record | empty-line))* NEWLINE? | header +header ::= OPENBRACK NOTCRLF* +comment ::= SEMICOLON NOTCRLF* +empty-line ::= WHITESPACE* +record ::= field (PIPE field)* +field ::= WHITESPACE* field-data WHITESPACE* +field-data ::= escaped | unescaped +escaped ::= DQUOTE (TEXTDATA | WHITESPACE | NEWLINE | PIPE | DQUOTE DQUOTE)* DQUOTE +unescaped ::= (TEXTDATA (WHITESPACE* (TEXTDATA | DQUOTE))*)? +HTAB ::= #x09 +LF ::= #x0A +VTAB ::= #x0B +FF ::= #x0C +CR ::= #x0D +SPACE ::= #x20 +DQUOTE ::= #x22 +SEMICOLON ::= #x3B +OPENBRACK ::= #x5B +PIPE ::= #x7C +WHITESPACE ::= SPACE | FF | HTAB | VTAB +NOTCRLF ::= [#x00-#x09#x0B-#x0C#x0E-#x10FFFF] +TEXTDATA ::= [#x00-#x08#x0E-#x1F#x21#x23-#x5A#x5C-#x7B#x7D-#x10FFFF] +NEWLINE ::= CR LF? -- cgit v1.2.3