Skip to content

Memory Model

tkellehe edited this page May 18, 2019 · 4 revisions

The Stack

unsupported

Noodel is a stack based language and therein all state is immediately pushed on or popped off of the main stack. Noodel also has another stack that is used for buffering user input. But, by default all input from the user is pushed onto the stack and at the end of the script whatever is at the top of the stack is popped off and displayed.

Arrays

In Noodel, the stack is an Array object. This means the stack can be printed like an Array object as well as be swapped out with another Array object. This provides all of the stack functions can be used on an Array object by making it the current stack.

Clone this wiki locally