Closed cherudim9 closed 8 years ago
Also, regarding lexer, the question mark ?
should be added into the list in IsPunctuation()
(https://github.com/csyonghe/Spire/blob/master/Source/SpireCore/Lexer.cpp#L24).
In compiler front end, select instructions are not being properly processed.
On https://github.com/csyonghe/Spire/blob/master/Source/SpireCore/CodeGenerator.cpp#L713 , in the end of VisitSelectExpression()
, an expression should be pushed into expression stack.
bugs fixed. Thanks!
Xor operator
^
is not processed inParseOperators()
. (https://github.com/csyonghe/Spire/blob/master/Source/SpireCore/Lexer.cpp#L55)