about summary refs log tree commit diff
path: root/examples/5.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-03-26 01:19:00 +0100
committerBaitinq <[email protected]>2025-03-26 01:19:00 +0100
commitd43c244d76c1e89117bb21f2f53a5b05ca73812c (patch)
tree955c7891facec4a37b0aa215bd76a4ba6f08c875 /examples/5.src
parentFeature: Add basic support for varargs (diff)
downloadpry-lang-d43c244d76c1e89117bb21f2f53a5b05ca73812c.tar.gz
pry-lang-d43c244d76c1e89117bb21f2f53a5b05ca73812c.tar.bz2
pry-lang-d43c244d76c1e89117bb21f2f53a5b05ca73812c.zip
Tokenizer: Support newlines and tabs for strings
Diffstat (limited to 'examples/5.src')
-rw-r--r--examples/5.src6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/5.src b/examples/5.src
index f149e92..a8d341d 100644
--- a/examples/5.src
+++ b/examples/5.src
@@ -5,14 +5,14 @@ let x = 18;
 
 let foo = () => i64 {
 	let x = 1;
-	printf("%d", x);
+	printf("%d\n", x);
 	return x;
 };
 
 let main = () => i64 {
-	printf("%d", x);
+	printf("%d\n", x);
 	let x = 2;
 	let y = foo();
-	printf("%d", x);
+	printf("%d\n", x);
 	return x + y;
 };