summaryrefslogtreecommitdiff
path: root/src/test.txt
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-01-11 09:58:43 +0800
committerJSDurand <mmemmew@gmail.com>2022-01-11 09:58:43 +0800
commit91016bd3855375796fd1eabd501ebc12491f2655 (patch)
treec4a608966b686c9639a90b92c31c00632532fac8 /src/test.txt
parent949888ad5d0cd0f9f9a87f9938a632b3e32df051 (diff)
Add the framework for character classes.
Now we have the potential to recognize character classes. But the most important task for us now is to experiment with ((B)RN)GLR algorithms, so we leave the character classes at the present state for a moment.
Diffstat (limited to 'src/test.txt')
-rw-r--r--src/test.txt34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/test.txt b/src/test.txt
index be9b3ba..27af3ad 100644
--- a/src/test.txt
+++ b/src/test.txt
@@ -1,9 +1,25 @@
-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
+S: S "+" T
+S: T
+T: T "*" F
+T: F
+F: "(" S ")"
+F: "0"
+F: "1"
+F: "2"
+F: "3"
+F: "4"
+F: "5"
+F: "6"
+F: "7"
+F: "8"
+F: "9"
+F: "0" F
+F: "1" F
+F: "2" F
+F: "3" F
+F: "4" F
+F: "5" F
+F: "6" F
+F: "7" F
+F: "8" F
+F: "9" F