about summary refs log tree commit diff
path: root/examples/6.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-18 12:16:00 +0100
committerBaitinq <[email protected]>2025-01-18 12:16:00 +0100
commit920c2835ed6e65f162772a33128205e3908c6a71 (patch)
treed39fe550b23e2cd82bfe2ff939ff71a59ba6d6f8 /examples/6.src
parentTokenizer: Fix comment skipping (diff)
downloadpry-lang-920c2835ed6e65f162772a33128205e3908c6a71.tar.gz
pry-lang-920c2835ed6e65f162772a33128205e3908c6a71.tar.bz2
pry-lang-920c2835ed6e65f162772a33128205e3908c6a71.zip
Examples: Add variable scopes example
Diffstat (limited to '')
-rw-r--r--examples/6.src8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/6.src b/examples/6.src
new file mode 100644
index 0000000..573ee6a
--- /dev/null
+++ b/examples/6.src
@@ -0,0 +1,8 @@
+let print_input = (input) => {
+	print(input);
+	return input;
+};
+
+let main = () => {
+	return print_input(7);
+};