Symbol |
Function |
Description |
<blank> |
- |
No action. |
$ |
Program terminator. |
Exit. ($$ = end of program) |
<number> |
Number. |
Push a number onto the stack. |
+ |
Add. |
Pop two operands from the stack and push their sum. |
- |
Subtract. |
Pop two operands from the stack and push their difference. |
* |
Multiply. |
Pop two operands from the stack and push their product. |
/ |
Divide. |
Pop two operands from the stack and push their quotient. |
? |
Input number. |
Read a number from the keyboard and push it onto the stack. |
! |
Output number. |
Pop a number from the stack and display it on the terminal. |
" |
Output string. |
Display each character between the " and the next " on the terminal.
Translate the character ! to <new-line>. |
<letter> |
Variable. |
Convert the letter to an integer in the range 0..25 (A=0, B=1,...,Z=25). |
= |
Assignment. |
Pop two operands from the stack and store the value of the first at the address
specified by the second. |
. |
Dereference. |
Pop an address from the stack and push the value stored at that address onto the stack. |
[ |
Conditional. |
Pop a value from the stack. If it is zero or negative, skip over the character until a matching ] is found. |
] |
- |
No action. |
( |
Start loop. |
No action. |
) |
Go back to top of loop. |
Go back to top of loop. |
^ |
Exit loop. |
Exit loop. |
#<letter> |
Macro call. |
Macro call. |
@ |
Exit from macro. |
Exit from macro. |
% |
Replace formal parameter by actual. |
Replace formal parameter by actual. |
, |
End of actual parameter. |
End of actual parameter. |
; |
End of actual parameter. |
End of actual parameter. |
' |
Comment. |
Start of comment.
Suggested in the Byte magazine article as an extension; included in the C version of the Mouse-79 interpreter on this site. |