diff options
| author | Baitinq <[email protected]> | 2025-01-12 18:35:39 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-12 18:35:39 +0100 |
| commit | 01a475bd9c9e2249816fc935e7045d78cafdc672 (patch) | |
| tree | be5a3941341976c0e972ec281371e54b58bb9abc /examples | |
| parent | Add support for sum operator (diff) | |
| download | interpreter-01a475bd9c9e2249816fc935e7045d78cafdc672.tar.gz interpreter-01a475bd9c9e2249816fc935e7045d78cafdc672.tar.bz2 interpreter-01a475bd9c9e2249816fc935e7045d78cafdc672.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); |