Thanks to visit codestin.com
Credit goes to github.com

Skip to content

matheuspb/pn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pn

Polish notation(s) converter using Flex/Bison

Usage

Example input file:

* 3 + 4 5 -> in
25 / 5 + 3 + 4 / 2 -> post

will output:

3 * (4 + 5) = 27
25 5 / 3 + 4 2 / + = 10

On the first line, the program takes an expression in prefix (Polish) notation and outputs it in infix (Common, parenthesized) notation. The second line was converted from infix notation to postfix (Reverse polish) notation.

About

Polish notation(s) converter using Flex/Bison

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published