Skip to content

Simple Objective-C implementation of the shunting yard algorithm (convert an infix expression to postfix notation), plus a RPN calculator to compute the resulting postfix expressions.

Notifications You must be signed in to change notification settings

stribehou/Infix-expression-calculator

Repository files navigation

This project is an Objective-C library which computes the result of (very simple for now) mathematical expressions.
Currently supported operations are additions, substractions, divisions, and multiplications. (Nested brackets are suported.)

It's composed of 3 classes : 
- An implementation of the shunting yard algorithm, which converts a string from infix to postfix notaation.
- A RPN calculator, which computes the result of a postfix expression.
- A "calculator" wrapper around those classes.























About

Simple Objective-C implementation of the shunting yard algorithm (convert an infix expression to postfix notation), plus a RPN calculator to compute the resulting postfix expressions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published