summaryrefslogtreecommitdiff
path: root/point.toc
diff options
context:
space:
mode:
Diffstat (limited to 'point.toc')
-rw-r--r--point.toc12
1 files changed, 12 insertions, 0 deletions
diff --git a/point.toc b/point.toc
new file mode 100644
index 0000000..e37f37a
--- /dev/null
+++ b/point.toc
@@ -0,0 +1,12 @@
+pkg "point";
+
+#export Point ::= struct {
+ x, y: int;
+};
+
+#export mk_point ::= fn(x, y: int) Point {
+ p : Point;
+ p.x = x;
+ p.y = y;
+ p
+};