Added error handling to the function that creates the expression trees.
Merge branch 'master' of github.com:andkem/TDDC76-lab3

Merging changes.