PhpSqlAsp.com
RPN Interpreter (NEW)
EXAMPLE OF
RPN INTERPRETER IN PHP
(C) Arturo Gonzalez-Mata Santana // This example read and execute RPN commands from the form.
please write or edit a program
2 12 + 8 - 9 * 5 / 78 5 + - 25 10 * 50 + DUP * SWAP - 23 50 < IF + * then 40 +
RPN
COMMANDS
" " (space)
is the command separator
Math Operators:
+ - * /
Comparison Operators:
= <> > < >= <=
Conditionals:
IF .. THEN
Stack:
DUP SWAP