-
Notifications
You must be signed in to change notification settings - Fork 0
Shell
Socratic_Phoenix edited this page Aug 19, 2017
·
3 revisions
Shnap has a shell which is accessible through the interpreter. When using the shell:
- Type statements to execute. The value of the last top-level statement on a line will be printed
- Type 'return' to exit
- Prefix a line with
&
to store it - Stored lines will be pre-pended and parsed with the first line not prefixed with a
&
Example:
>1 + 1
Value: 2
>&value = 2
>&println(value)
>println(value)
2
2
Value: void
Home | New Issue | Contact Me