Added simple input loop to clc
Fixed undefined behavior of tree construction
* Invalid input syntax led to undefined behavior when accessing the top element of an empty stack
** Fixed by introducing a new "topNodeFrom" function which throws an exeption in the case that the given std::stack reference is empty