Login   Register  
PHP Classes
elePHPant
Icontem

Simple RPN Interpreter: Evaluate reverse polish notation expressions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-08-16 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 634 This week: 1All time: 4,519 This week: 1,420Up
Version License PHP version Categories  
rpn 1.0GNU General Public Lice...4.0.0Emulators, Math, Parsers
Description Author  
PHP Programming Innovation award nominee
August 2007
Number 3


Prize: One copy of Delphi for PHP
This class can be used parse and evaluate RPN (reverse polish notation) expressions.

It can parse a mathematical expressions with operands and operators in reverse polish and evaluates the expression.

If the expression is split in multiple lines, it can evaluate each line individually.

Currently it supports the operators: +, - , *, /, IF, THEN, SWAP, DUP, =, <>, >, <. >= and <= .
Picture of Arturo Gonzalez-Mata Santana
Name: Arturo Gonzalez-Mata ... <contact>
Classes: 1 package by
Country: Spain Spain
Age: 57
All time rank: 262565 in Spain Spain
Week rank: 1076 Up34 in Spain Spain Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file rpn.class.php Class rpn parser
Accessible without login Plain text file example.php Example example of use of rpn.class.php with forms
Accessible without login Plain text file example2.php Example example of use of rpn.class.php with server files
Accessible without login Plain text file license.txt Lic. GPL license for RPN.class
Accessible without login Plain text file RPN.txt Data rpn "program" file

Innovation Award  
PHP Programming Innovation award nominee
August 2007
Number 3


Prize: One copy of Delphi for PHP
RPN (Reverse Polish Notation) is a way to present the operands and operators of mathematical expressions.

RPN has been most notably used in Hewlett-Packard scientific calculators.

This class provides a solution to parse and evaluate mathematical expressions presented with RPN.

Manuel Lemos
 Version Control Unique User Downloads Download Rankings  
 0%Total:634All time:4,519
 This week:1This week:1,420Up