Skip to content

AnderSouza/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Calculator.

This is a study project. The goal was to implement the Composite Pattern in a real example.

Pattern

ℹ️ For those who don't know the pattern, here's some info.

We basically want to treat part and whole objects uniformly. That's required when you're evaluating mathematical formulas containing parenthesis, in which you can treat the operations wrapped inside a pair of parenthesis as a formula on itself.