Calculator evaluates expression by converting Infix notation to Postfix.
Calculator has several types of expression elements:
- number (float with point)
- constant (PI, E)
- operator (+, -, *, /)
- function (sin, cos)
- Enter your expression to console
- Get result
Attention
: Current realization of parser can parse only elements between which exists whitespace.
cos ( 1.5 + 1.5 ) / 3
- Choose what type of element you want to add
- Inherit new element class from base element
- Define class attribute
StringDefinitionAttribute
with string value of element - Add implementation logic of your element
- ???
- Profit