From 3b8c8578d9b1059e53579c88c60661183d4783be Mon Sep 17 00:00:00 2001 From: Kia <kia@special-circumstanc.es> Date: Mon, 27 Jan 2020 20:51:26 -0700 Subject: [PATCH] can parse (3+2)*5 --- combinatorial_LR_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combinatorial_LR_parser.py b/combinatorial_LR_parser.py index a982f3e..dca8986 100644 --- a/combinatorial_LR_parser.py +++ b/combinatorial_LR_parser.py @@ -652,7 +652,7 @@ class DummyPlug(Elaboratable): m = Module() # BOTTOM = start of parse - mem = Memory(width=16, depth=256, init=[0xE103, ADDOP, 0xE102, MULTOP, 0xE105, ENDOFPARSE]) + mem = Memory(width=16, depth=256, init=[OPENPAREN,0xE103, ADDOP, 0xE102,CLOSEPAREN, MULTOP, 0xE105, ENDOFPARSE]) m.submodules.parse_data = rdport = mem.read_port() -- GitLab