From 636eb26a3821664cc5266fc46176cbb2dceea2e4 Mon Sep 17 00:00:00 2001 From: kwullaer Date: Mon, 2 Jan 2017 20:07:24 +0100 Subject: [PATCH] Test voor shift reduce error --- tests/lr0_shift-red.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lr0_shift-red.cpp b/tests/lr0_shift-red.cpp index ac7013f..2d2fb81 100644 --- a/tests/lr0_shift-red.cpp +++ b/tests/lr0_shift-red.cpp @@ -18,7 +18,7 @@ TEST(lr0, test0) { grammar.variables = {"S'","S","A","E"}; grammar.terminals = {"$",";", "id", ":=", "+"}; - pds::rule rule; + pds::Rule rule; rule.head = "S'"; rule.tail = {"S","$"}; grammar.rules.push_back(rule); @@ -110,9 +110,9 @@ TEST(lr0, test0) { std::vector> goto_ = { { {"S",1}, {"A",2}, {"E",3} }, /*state_num:1*/ - { {"A",8}, {"E",3} }, /*state_num:5*/ - { {"E",10} }, /*state_num:7*/ - }; +// { {"A",8}, {"E",3} }, /*state_num:5*/ +// { {"E",10} }, /*state_num:7*/ +// }; // Action: enum {ERROR,SHIFT,REDUCE,ACCEPT} /*