diff options
author | Rutger Broekhoff | 2024-05-02 20:27:40 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2024-05-02 20:27:40 +0200 |
commit | 17a3ea880402338420699e03bcb24181e4ff3924 (patch) | |
tree | da666ef91e0b60d20aa0b01529644c136fd1f4ab /src/querykv1/grammar.ebnf.bak | |
download | oeuf-17a3ea880402338420699e03bcb24181e4ff3924.tar.gz oeuf-17a3ea880402338420699e03bcb24181e4ff3924.zip |
Initial commit
Based on dc4ba6a
Diffstat (limited to 'src/querykv1/grammar.ebnf.bak')
-rw-r--r-- | src/querykv1/grammar.ebnf.bak | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ | |||
1 | document ::= (header NEWLINE)? (comment | record | empty-line) (NEWLINE (comment | record | empty-line))* NEWLINE? | header | ||
2 | header ::= OPENBRACK NOTCRLF* | ||
3 | comment ::= SEMICOLON NOTCRLF* | ||
4 | empty-line ::= WHITESPACE* | ||
5 | record ::= field (PIPE field)* | ||
6 | field ::= WHITESPACE* field-data WHITESPACE* | ||
7 | field-data ::= escaped | unescaped | ||
8 | escaped ::= DQUOTE (TEXTDATA | WHITESPACE | NEWLINE | PIPE | DQUOTE DQUOTE)* DQUOTE | ||
9 | unescaped ::= (TEXTDATA (WHITESPACE* (TEXTDATA | DQUOTE))*)? | ||
10 | HTAB ::= #x09 | ||
11 | LF ::= #x0A | ||
12 | VTAB ::= #x0B | ||
13 | FF ::= #x0C | ||
14 | CR ::= #x0D | ||
15 | SPACE ::= #x20 | ||
16 | DQUOTE ::= #x22 | ||
17 | SEMICOLON ::= #x3B | ||
18 | OPENBRACK ::= #x5B | ||
19 | PIPE ::= #x7C | ||
20 | WHITESPACE ::= SPACE | FF | HTAB | VTAB | ||
21 | NOTCRLF ::= [#x00-#x09#x0B-#x0C#x0E-#x10FFFF] | ||
22 | TEXTDATA ::= [#x00-#x08#x0E-#x1F#x21#x23-#x5A#x5C-#x7B#x7D-#x10FFFF] | ||
23 | NEWLINE ::= CR LF? | ||