summaryrefslogtreecommitdiff
path: root/src/test.txt
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-01-04 20:24:07 +0800
committerJSDurand <mmemmew@gmail.com>2022-01-04 20:24:07 +0800
commit949888ad5d0cd0f9f9a87f9938a632b3e32df051 (patch)
treeae9155484a3a5b4124c6d3fae14ada9d718c8579 /src/test.txt
parent55dc897da6e81f2a26cfc7e66ac942824773498b (diff)
Fix problems
Now some problems are fixed. It can now read grammar correctly (hopefully) from a file, in the BNF format. And strings (terminals) are handled fine as well. So glad that there are no leak problems now.
Diffstat (limited to 'src/test.txt')
-rw-r--r--src/test.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test.txt b/src/test.txt
index 71e125b..be9b3ba 100644
--- a/src/test.txt
+++ b/src/test.txt
@@ -1,7 +1,9 @@
-S: A A C
+S: A A LONG C 奎佑
A: B B B
B: A
A:
+LONG: B A
C: B C A
B: B B
+奎佑: "handsome"
A: A B A