Skip to content

A parser to parse and compute Mathematical expressions passed as a string. Uses shunting-yard algorithm to convert infix notation to postfix notation.

Notifications You must be signed in to change notification settings

RsFaruque/Math-Expression-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Math-Expression-Parser

A parser for parsing mathematical expressions passed as a string. Uses shunting-yard algorithm to convert infix notation to postfix.

# mkdir bin
# javac -d bin src/stack_parser/*.java src/Main.java
# java -cp bin Main

10*(8+2)
Answer: 100
#------------
10*8+2
Answer: 82
#------------
10/2+6
Answer: 11

About

A parser to parse and compute Mathematical expressions passed as a string. Uses shunting-yard algorithm to convert infix notation to postfix notation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages