diff --git a/v0.5/p1/spec/EBNF.md b/v0.5/p1/spec/EBNF.md new file mode 100644 index 000000000..d688833b5 --- /dev/null +++ b/v0.5/p1/spec/EBNF.md @@ -0,0 +1,38 @@ +# EBNF + +```chatinput + ::= * ? * + ::= |
+ + + ::= ( )* ( | ) + ::= ? + + ::= ( )* ( | ) + ::= ? + + +
::= ? ? + ::= ( )? ? + ::= + ::= + ::= + + + + ::= "--" + ::= "--" "end:" + ::= "\n" + ::= "\n" + ::= ":" + ::= ";;" + ::= ";;;" + + ::= | + ::= " "* + ::= " "+ + ::= + + ::= | + ::= "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" + ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" +``` \ No newline at end of file diff --git a/v0.5/p1/t/01-comment.ftd b/v0.5/p1/t/01-comment.ftd new file mode 100644 index 000000000..1e672a9cd --- /dev/null +++ b/v0.5/p1/t/01-comment.ftd @@ -0,0 +1,2 @@ +;; This is comment +;; This is other line in comment diff --git a/v0.5/p1/t/01-comment.json b/v0.5/p1/t/01-comment.json new file mode 100644 index 000000000..30b68ffc1 --- /dev/null +++ b/v0.5/p1/t/01-comment.json @@ -0,0 +1,14 @@ +{ + "doc_name": "01-comment", + "items": [ + { + "from": 1, + "to": 53, + "value": { + "type": "comment", + "value": " This is comment\nThis is other line in comment" + } + } + ], + "line_starts": [1] +} \ No newline at end of file