aboutsummaryrefslogtreecommitdiff
path: root/src/main.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-08 16:06:08 +0200
committerlemon <lsof@mailbox.org>2022-08-08 16:06:08 +0200
commitfc55daf22dd890860ac9c1a0a29900977a700df2 (patch)
tree96735ed737ae499c9dbbf54ad7bec44c6a4b6eb0 /src/main.cff
parentcc325dce01101e8b488cfc7e9fddfe0f778c7e17 (diff)
start self hosted comler
Diffstat (limited to 'src/main.cff')
-rw-r--r--src/main.cff7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cff b/src/main.cff
new file mode 100644
index 0000000..1dbbbee
--- /dev/null
+++ b/src/main.cff
@@ -0,0 +1,7 @@
+import "libc.hff";
+import "parse.hff";
+
+extern fn main(argc int, argv **u8) int {
+ let t Tok = { TokT:kw_or, { .i: 1 } };
+ printf("%d\n", TokT:kw_or);
+}