ramstack - langel/LOLkernel GitHub Wiki
The ramstack is a singleton object that accumulates variables in an array. Since an array can not contain objects it holds pointers to objects instead.
POKE($addr,$a); Sets value $a at ramstack position $addr.
PEEK($addr); Retrieves the value set at ramstack position $addr.
The POKE() and PEEK() $addr syntax is simple! Give it an alphanumeric string. It can also handle multidimensional arrays by separating the dimensions with the pipe '|' character within the string. Keyless arrays can be poked in by appending the string with a set of brackets '[]'.
push($a); Stores the value $a in the stack.
pop(); Retrieves the previous push($a) value from the stack.
inc($addr); Increases a numerical value at ramstack position $addr by 1.
dec($addr); Decreases a numerical value at ramstack position $addr by 1.