| MOUSE Language Reference | ||||||
| Home | ||||||
| $$ end of program " print up to next " ! print CR/LF inside "'s ? read number from stdin and push ! pop number from stack and print it n push the integer n onto stack A-Z push address of variable on stack . replace address on stack with value = pop value, pop address, write value at address + pop a, pop b, push a + b - pop a, pop b, push a - b * pop a, pop b, push a * b / pop a, pop b, push a / b [ pop c, if c<=0 then skip to ] on same level ) loop back to previous ( at same level ^ pop c, if c!=0 then break out of loop #M; substitute M with any single letter to call macro M with no arguments #M,args; substitute M with any single letter and args with one to 26 comma-separated arguments to call a macro with one or more arguments. @ terminates a macro definition (return) %A push the value of parameter A (substitute any single letter for A) $A the beginning of macro A substitute any single letter for A) |
||||||