about summary refs log tree commit diff
path: root/examples/4.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-03-23 23:57:05 +0100
committerBaitinq <[email protected]>2025-03-24 00:17:07 +0100
commit31fa32743a5ed25724868cfa476e3af028adb118 (patch)
tree97afd19643223af3784baef5c2b57e48467dcce9 /examples/4.src
parentParser: Fix ambiguity with symbol declaration (diff)
downloadinterpreter-31fa32743a5ed25724868cfa476e3af028adb118.tar.gz
interpreter-31fa32743a5ed25724868cfa476e3af028adb118.tar.bz2
interpreter-31fa32743a5ed25724868cfa476e3af028adb118.zip
Feature: Add support for strings
Diffstat (limited to 'examples/4.src')
-rw-r--r--examples/4.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src
index b6e8ab3..d1ae454 100644
--- a/examples/4.src
+++ b/examples/4.src
@@ -1,12 +1,12 @@
 let main = () => i64 {
 	let print_one = () => i64 {
-		print(1);
+		printf("%d", 1);
 		return 4;
 	};
 
 	let y = print_one() + 2;
 
-	print(y);
+	printf("%d", y);
 
 	return y;
 };