Skip to content

mgalka/RPN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is RPN

Reverse Polish Notation (RPN) is a postfix mathematical notation. It means that every operator follows all its operands. You can visit Wikipedia to learn more about it http://en.wikipedia.org/wiki/Reverse_polish_notation.

What is RPN.py

RPN.py is a simple module that facilitates conversion from infix notation (e.g. 2 + 2) to postfix notation (e.g. 2 2 +). It also allows to define your own operators. It may be useful if you'd like to use it to parse (and evaluate) the arithemetical-like expression for example in your application configuration.

Implementation status

[x] Custom operators definition (RPNOperator class)

[x] Infix to postfix conversion (RPNParser class)

[] Postfix expression evaluation

[] Usage examples

About

Reversed Polish Notation module for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages