From fd5bdaff40f93546009e1ec854fd26df01e78f22 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 30 Apr 2024 15:25:17 +0300 Subject: correct addr + Doesn't quite implement stack handling fully as of yet, but slowly getting there --- src/parser.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/parser.y') diff --git a/src/parser.y b/src/parser.y index b4c0035..dd744c0 100644 --- a/src/parser.y +++ b/src/parser.y @@ -381,7 +381,11 @@ stack struct val t = IDALLOC($[id]); INSADD(ALLOC, $[type], t, noclass(), noclass(), $[int]); } - + | type id "=" "^" id { + struct val t = IDALLOC($2); + struct val f = IDTOVAL($5); + INSADD(ADDR, $[type], t, f, noclass(), 0); + } | "^" "^" int { INSADD(DEALLOC, NOTYPE, noclass(), noclass(), noclass(), $[int]); } -- cgit v1.3