diff options
author | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2025-01-16 22:27:29 +0100 |
---|---|---|
committer | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2025-01-16 22:27:29 +0100 |
commit | ae8624e160eaf0d9805d9c1d2c834afd41b10433 (patch) | |
tree | f299c2c779758029daa2d519ffce079c767d38c8 /examples | |
parent | Get function calls kind of working :) (diff) | |
download | interpreter-ae8624e160eaf0d9805d9c1d2c834afd41b10433.tar.gz interpreter-ae8624e160eaf0d9805d9c1d2c834afd41b10433.tar.bz2 interpreter-ae8624e160eaf0d9805d9c1d2c834afd41b10433.zip |
Evaluator: variables as values
Diffstat (limited to 'examples')
-rw-r--r-- | examples/4.src | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src index 6e639a8..0dd81ae 100644 --- a/examples/4.src +++ b/examples/4.src @@ -1,11 +1,11 @@ let print_one = () => { print(1); - return 0; + return 4; }; let main = () => { - let y = print_one(); + let y = print_one() + 2; print(y); |