about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-01-12 17:43:50 +0100
committerBaitinq <[email protected]>2025-01-12 17:47:51 +0100
commit1a2f5d76b34bbee23bf7a5cb439168442bf6def5 (patch)
tree355cf53c0efcd5853b0e4c0755670b42453dec23 /examples
parentEvaluator: Fix bug when variables are initialized with the same identifier as... (diff)
downloadpry-lang-1a2f5d76b34bbee23bf7a5cb439168442bf6def5.tar.gz
pry-lang-1a2f5d76b34bbee23bf7a5cb439168442bf6def5.tar.bz2
pry-lang-1a2f5d76b34bbee23bf7a5cb439168442bf6def5.zip
Add support for sum operator
Diffstat (limited to 'examples')
-rw-r--r--examples/3.src6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/3.src b/examples/3.src
index 736ab61..042edea 100644
--- a/examples/3.src
+++ b/examples/3.src
@@ -1,5 +1,3 @@
-let ten = 10;
+let sixteen = 10 + 2 + 4;
 
-let twelve = ten + 2;
-
-print(twelve);
+print(sixteen);