Skip to content
Socratic_Phoenix edited this page Aug 19, 2017 · 3 revisions

<-- Back | Next -->


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
Clone this wiki locally