about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-06-28 00:17:18 +0200
committerBaitinq <[email protected]>2025-06-28 00:17:18 +0200
commitaf150fb67db0d694b9d9bfd1e1796f0e671441b8 (patch)
treeb30db72360c24cc86189ab5788411a271de7b10f /examples
parentBootstrap: Parser: Parse function calls (diff)
downloadpry-lang-af150fb67db0d694b9d9bfd1e1796f0e671441b8.tar.gz
pry-lang-af150fb67db0d694b9d9bfd1e1796f0e671441b8.tar.bz2
pry-lang-af150fb67db0d694b9d9bfd1e1796f0e671441b8.zip
Bootstrap: Codegen: start working on function calls
Diffstat (limited to 'examples')
-rw-r--r--examples/-1.pry5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/-1.pry b/examples/-1.pry
index 5093a7e..03bac03 100644
--- a/examples/-1.pry
+++ b/examples/-1.pry
@@ -1,8 +1,11 @@
 /* HELLO! Welcome to the unnamed language */
 
-extern printf = (*i8, varargs) => void;
+let putchar = () => i64 {
+	return 0;
+};
 
 let main = () => i64 {
+	putchar();
 	return 7;
 };