diff options
| author | Baitinq <[email protected]> | 2025-01-15 00:46:15 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-15 00:46:15 +0100 |
| commit | 6ac60ae592458c0aa5cc46cf44822f31e3ab58c3 (patch) | |
| tree | f389b076a0bcf2451f7a88595fc63016b1725e7c /examples/4.src | |
| parent | Parser: clean (diff) | |
| download | interpreter-6ac60ae592458c0aa5cc46cf44822f31e3ab58c3.tar.gz interpreter-6ac60ae592458c0aa5cc46cf44822f31e3ab58c3.tar.bz2 interpreter-6ac60ae592458c0aa5cc46cf44822f31e3ab58c3.zip | |
Add basic support for parsing functions
Diffstat (limited to 'examples/4.src')
| -rw-r--r-- | examples/4.src | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/4.src b/examples/4.src index e1ebcdc..25dcc7a 100644 --- a/examples/4.src +++ b/examples/4.src @@ -1,3 +1,6 @@ -let x = 2; +let print_one = () => { + print(1); + return 1; +}; -return x+1; +print_one(); |