Login   Register  
PHP Classes
elePHPant
Icontem

Simple RPN Interpreter

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Arturo Gonzalez-Mata Santana
Name: Arturo Gonzalez-Mata ... <e-mail contact>
Packages: 1 Browse all classes by Arturo Gonzalez-Mata Santana Browse all classes by
Country: Spain Spain - PHP jobs in Spain
Age: 56
All time rank: 255764 in Spain Spain
Week rank: 2205 Up61 in Spain Spain Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
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 <= .

  Classes of Arturo Gonzalez-Mata Santana  >  Simple RPN Interpreter  >  Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple RPN Interpreter
Base name: rpn
Description: Evaluate reverse polish notation expressions
Version: -
PHP version: 4.0.0
License: GNU General Public License (GPL)
All time users: 593 users
All time rank: 4459
Week users: 0 users
Week rank: 2151 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Emulators System or language emulation View top rated classes
Group folder image Math Math related classes. View top rated classes
Group folder image Parsers Programming language interpreters and format parsers View top rated classes


  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

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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

Download all files: rpn.tar.gz rpn.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.