summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2025-01-16 22:35:47 +0100
committerManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2025-01-16 22:35:47 +0100
commite4a16a164fee507289c8239919e82c11dbeb1a81 (patch)
tree4c061884073f4ac506aeff4013637d5ac5dd4bf6
parentTokenizer: Add support for comments (diff)
downloadinterpreter-e4a16a164fee507289c8239919e82c11dbeb1a81.tar.gz
interpreter-e4a16a164fee507289c8239919e82c11dbeb1a81.tar.bz2
interpreter-e4a16a164fee507289c8239919e82c11dbeb1a81.zip
Examples: new example
-rw-r--r--examples/5.src9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/5.src b/examples/5.src
new file mode 100644
index 0000000..ad96168
--- /dev/null
+++ b/examples/5.src
@@ -0,0 +1,9 @@
+let print_input = (input) => {
+	print(input);
+	return input;
+};
+
+
+let main = () => {
+	return print_input(7);
+};