summaryrefslogtreecommitdiff
path: root/baby.golem
diff options
context:
space:
mode:
Diffstat (limited to 'baby.golem')
-rw-r--r--baby.golem9
1 files changed, 6 insertions, 3 deletions
diff --git a/baby.golem b/baby.golem
index 5e9fa57..6da1cb9 100644
--- a/baby.golem
+++ b/baby.golem
@@ -4,6 +4,9 @@ var heap = 0;
const dwidth = 396;
const dheight = 224;
-// prototypes
-fn hello();
-fn alloc(size);
+// simple function
+fn hello()
+{
+ var x = 10;
+ return x;
+}