Home
Name Modified Size InfoDownloads / Week
onop.c 2014-06-02 11.0 kB
readme 2014-05-23 1.4 kB
Totals: 2 Items   12.4 kB 0
+, -, *, /, %, <, >, and = work as expected.
_ : Negate tos (top of stack).
~ : Replace tos with 8-bit sine wave table look-up.
? : Replace tos with random number if tos is not zero, else with the last random number given.
$ : Duplicate tos.
\ : Swap top two elements.
@ : Rotate top three elements.
& : Returns the "pointer" to a string.
! : Assign second top element to the pointer given by top element, points to less than 1st string/function, assign to the stack
# : Pick an element from a string given by a pointer at tos. Smaller pointers return elements from the stack.
( : Start pushing chars to pad.
) : Stop pushing chars to pad. If a valid integer is written before this symbol, evaluate that function.
^ : If inside parens, save pad to function given by tos (0 = stack) including " ^ " and clear pad, else evaluate function given by tos. If tos is greater than 32, evaluate that ascii character. Execution continues as long as functions with names greater than 0 are evaluated.
" : If inside parens, save to string given by tos not including " ^ ".
. : Write char at tos.
, : Wait for user input and push first char.
| : Wait for user input, and push are chars to string given by tos. If top of stack is 0 push chars to stack.
` : If tos is 0, print stack else print string at tos if it does not contain " ^ ".
[ : Begin storing filename.
] : Stop storing filename, and push file contents to pad. 
Source: readme, updated 2014-05-23