diff options
| author | Baitinq <[email protected]> | 2025-01-16 00:36:57 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-16 00:36:57 +0100 |
| commit | 73361a5efaf770f343829e7c81752edbbd2f5df7 (patch) | |
| tree | c0e21c5abdc65187c234fb12a38a1644865d33ff /examples | |
| parent | Parser: clean (diff) | |
| download | pry-lang-73361a5efaf770f343829e7c81752edbbd2f5df7.tar.gz pry-lang-73361a5efaf770f343829e7c81752edbbd2f5df7.tar.bz2 pry-lang-73361a5efaf770f343829e7c81752edbbd2f5df7.zip | |
Evaluator: Start working on new function-capable evaluator
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/4.src | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src index ddbc5d4..6e639a8 100644 --- a/examples/4.src +++ b/examples/4.src @@ -3,6 +3,11 @@ let print_one = () => { return 0; }; -let y = print_one(); -print(y); +let main = () => { + let y = print_one(); + + print(y); + + return y; +}; |