diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-12 18:35:39 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-12 18:35:39 +0100 |
commit | eb1e1fc1e70bdde6a453f82dea2348c42ccb198d (patch) | |
tree | be5a3941341976c0e972ec281371e54b58bb9abc /examples | |
parent | Add support for sum operator (diff) | |
download | interpreter-eb1e1fc1e70bdde6a453f82dea2348c42ccb198d.tar.gz interpreter-eb1e1fc1e70bdde6a453f82dea2348c42ccb198d.tar.bz2 interpreter-eb1e1fc1e70bdde6a453f82dea2348c42ccb198d.zip |
Evaluator: Store variables with value instead of reference
Diffstat (limited to 'examples')
-rw-r--r-- | examples/3.src | 6 |
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); |