Age | Commit message (Collapse) | Author |
|
* OperatorNode class now uses TokenType for internal operator storage and logic selection
* print-Method resolves the TokenType back into its character representation
|
|
Conflicts:
src/tree.cc
src/utils.cc
|
|
* Made implementation more expressive by replacing the integer priority with an strictly typed enum called TokenType
** Made removal of character comparisons from tree construction and lexer possible
* As a side effect distinct numbers had to be assigned to each token
** Operators of same priority do not have identical numbers anymore
|
|
* New priority for alphabetic characters
* Overloaded OperandNode constructor
* Currently not usable, only basic proof of concept
|
|
* 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
|
|
* library is called libSimpleParser.so
* parser was renamed to clc
* test and clc are using the shared library
|
|
* Enabled tree to generate itself
** Main work is now done during tree construction
* Moved lexer and getPriority utility functions into separate compilation unit
|
|
|
|
|
|
to the libary user by providing a new plain "exportTree" function
|
|
priority determination and tree building functions were hidden in
unnamed namespace
|
|
|
|
|