about summary refs log tree commit diff
path: root/examples/3.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-12 18:35:39 +0100
committerBaitinq <[email protected]>2025-01-12 18:35:39 +0100
commit01a475bd9c9e2249816fc935e7045d78cafdc672 (patch)
treebe5a3941341976c0e972ec281371e54b58bb9abc /examples/3.src
parentAdd support for sum operator (diff)
downloadpry-lang-01a475bd9c9e2249816fc935e7045d78cafdc672.tar.gz
pry-lang-01a475bd9c9e2249816fc935e7045d78cafdc672.tar.bz2
pry-lang-01a475bd9c9e2249816fc935e7045d78cafdc672.zip
Evaluator: Store variables with value instead of reference
Diffstat (limited to 'examples/3.src')
-rw-r--r--examples/3.src6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/3.src b/examples/3.src
index 042edea..4b56092 100644
--- a/examples/3.src
+++ b/examples/3.src
@@ -1,3 +1,5 @@
-let sixteen = 10 + 2 + 4;
+let seventeen = 10 + 2 + 4;
 
-print(sixteen);
+seventeen = seventeen + 1;
+
+print(seventeen);