aboutsummaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-30 15:25:17 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-30 15:25:17 +0300
commitfd5bdaff40f93546009e1ec854fd26df01e78f22 (patch)
tree2750eff7430b62d790292df238595a22e3f02616 /src/parser.y
parentcb71bb6ad44d5e6ea4d4af4896c23088957cbdb3 (diff)
downloadqbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.tar.gz
qbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.zip
correct addr
+ Doesn't quite implement stack handling fully as of yet, but slowly getting there
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y6
1 files changed, 5 insertions, 1 deletions
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]);
}