Merge branch 'Sprint3-Symbol_Table_Restructure-FE-t#NoTask' into Dev

This commit is contained in:
Moroseui
2025-04-04 21:34:52 -04:00
committed by GitHub
9 changed files with 544 additions and 364 deletions

View File

@ -0,0 +1,37 @@
type rec: [integer: x; integer: y]
type main: rec -> integer
function test: main
test (arg) := {
[integer:x; Boolean: b]
while (true) {
x := 0;
}
while (7) {
x := 1;
}
if (true) then {
x := 1;
} else {
x := 0;
}
if (x) then {
x := 0;
} else {
x := 1;
}
b := b | b;
b := b & b;
b := 1 | b;
b := b | 1;
b := b & 1;
b := 1 & b;
b := 1 = 1;
b := 1 = b;
return 0;
}

View File

@ -1,15 +1,19 @@
type main: string -> integer
type rec: [integer: x; integer: y]
function entry: main
entry (arg) := {
[integer:x; address: arr; address: arr2; Boolean : b2; Boolean : b1; character : a]
[integer:x; address: arr; address: arr2; Boolean : b2; Boolean : b1; character : a; rec : r]
x := 3 + 2 * 8;
x := 3 - 2 / 8;
x := a * 2 % 8;
b2 := 3 * 2 % 8;
x := 3 % 2 * 8;
x := 3 + arr - 8;
return 0;
x := 3 + 2 * 8;
x := 3 - 2 / 8;
x := a * 2 % 8;
b2 := 3 * 2 % 8;
x := 3 % 2 * 8;
x := 3 + arr - 8;
x := r.x;
x := a.x;
return 0;
}