idk what i did anymore
This commit is contained in:
8
tests/sprint4/test/sp4_cg_demo.alpha
Normal file
8
tests/sprint4/test/sp4_cg_demo.alpha
Normal file
@ -0,0 +1,8 @@
|
||||
type main: string -> integer
|
||||
function entry: main
|
||||
|
||||
entry(arg) := {
|
||||
[integer:x]
|
||||
x := 3 + 2 * 8;
|
||||
return x;
|
||||
}
|
8
tests/sprint4/test/sp4_cg_demo.alpha~
Normal file
8
tests/sprint4/test/sp4_cg_demo.alpha~
Normal file
@ -0,0 +1,8 @@
|
||||
type main: string -> integer
|
||||
function entry: main
|
||||
|
||||
entry(arg) := {
|
||||
[integer:x]
|
||||
x := 3 + 2 * 8;
|
||||
return 0;
|
||||
}
|
9
tests/sprint4/test/sp4_cg_demo.cg
Normal file
9
tests/sprint4/test/sp4_cg_demo.cg
Normal file
@ -0,0 +1,9 @@
|
||||
type main: string -> integer
|
||||
function entry: main
|
||||
|
||||
entry(arg) := {
|
||||
[integer:x; Boolean b]
|
||||
x := 3 + 2 * 8;
|
||||
b := x < 1;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user