diff options
| author | Baitinq <[email protected]> | 2025-01-12 19:47:16 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-12 19:47:32 +0100 |
| commit | b08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c (patch) | |
| tree | 0f9355bd993c6863361bb643397c49140d4428a5 /examples/4.src | |
| parent | Evaluator: Store variables with value instead of reference (diff) | |
| download | interpreter-b08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c.tar.gz interpreter-b08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c.tar.bz2 interpreter-b08960fa4f3e3c5c45a1b92ec80a82ad02d82c8c.zip | |
Implement "return"
Diffstat (limited to 'examples/4.src')
| -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 7e6662e..e1ebcdc 100644 --- a/examples/4.src +++ b/examples/4.src @@ -1,3 +1,3 @@ -let hello = "hello"; +let x = 2; -print(hello + " world!"); +return x+1; |