diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-09 11:16:07 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-09 11:16:07 -0400 |
commit | a2f5cd5069df70436228c8f6cb6ed82edcdcaae8 (patch) | |
tree | 85a3aa174a9b30d562a2dab9860e141719261de0 /prev.toc | |
parent | 621359c153dbe378264d9ce96caf467b52a29f0c (diff) |
started cgen
Diffstat (limited to 'prev.toc')
-rw-r--r-- | prev.toc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/prev.toc b/prev.toc new file mode 100644 index 0000000..83f01d3 --- /dev/null +++ b/prev.toc @@ -0,0 +1,14 @@ +main @= fn() { + add3 @= fn(x : int, y : int, z : int) int { + x + y + z + }; + add2 @= fn(x : int, y : int) int { + x + y + }; + id @= fn(x : int) int { x }; + + a1 : [id(7)]int; + a2 : [add2(53, 3)]int; + a3 : [add3(3,1,2)]f32; + GHJK : [{x := 5; x}]f32; +};
\ No newline at end of file |