summaryrefslogtreecommitdiffhomepage
path: root/test-lexer.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-01-25 13:19:49 +0100
committerRoland Reichwein <mail@reichwein.it>2020-01-25 13:19:49 +0100
commitc984c05f2f2d6c9cee4a0eb561fd7184786c5d1d (patch)
treeede659042357aa5b7a3564c650edf8b42f9d7c71 /test-lexer.cpp
parente172ed9f799501c234c8da18cef829244473f1d7 (diff)
Minor fixes
Diffstat (limited to 'test-lexer.cpp')
-rw-r--r--test-lexer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test-lexer.cpp b/test-lexer.cpp
index 4f68fc6..71f787a 100644
--- a/test-lexer.cpp
+++ b/test-lexer.cpp
@@ -48,8 +48,10 @@ TEST_F(Test, BNF) {
std::string Top{"program"};
BNF bnf{
{"program", {{"statement-list"}}},
- {"statement-list", {{"statement-list", "statement"},
- {"statement"}, }},
+ {"statement-list", {
+ {"statement"},
+ {"statement-list", "statement"},
+ }},
{"statement", {{"assignment", ";"}}},
{"assignment", {{"identifier", "=", "identifier"},
{"identifier", "=", "pp-number"}}}