aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-17 22:47:36 +0200
committerlemon <lsof@mailbox.org>2022-08-17 22:47:36 +0200
commit1c25c197d860ad49bb6a84e077a54e5aaf441bbd (patch)
tree8f7b963d1c891cfaa2d490a2f651ac0b8fa83c42 /examples/hello-world.cff
parent86242b6cc1f53a86fcce1312211d3232661bf454 (diff)
parse defmacro
Diffstat (limited to 'examples/hello-world.cff')
-rw-r--r--examples/hello-world.cff6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/hello-world.cff b/examples/hello-world.cff
index 29a1c03..3eb198c 100644
--- a/examples/hello-world.cff
+++ b/examples/hello-world.cff
@@ -1,10 +1,6 @@
-extern fn printf(fmt *const u8, ...) int;
-extern fn cos(x f32) f32;
+import "libc.hff";
extern fn main(argc int, argv *const *const u8) int {
- let x = argv,
- z = 3;
- let foo = x + z;
printf("hello world\n");
}