From 949888ad5d0cd0f9f9a87f9938a632b3e32df051 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 4 Jan 2022 20:24:07 +0800 Subject: 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. --- src/test.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test.txt') 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 -- cgit v1.2.3-18-g5258