Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Exception thrown by getCopyOfInitialTokens() #21
As reported by Akagara http://mathparser.org/share-how-you-use-mxparser/#comment-585
The problem occurs when lexer syntax is not ok. In this case getCopyOfInitialTokens() runs the tokenizeExpressionString() method, and then the tokens level evaluation (i.e. parenthesis), which uses stack, which in some cases (lexer syntax not ok) might be empty.
This will be corrected: checkLexSyntax() method will be added. Additionally there will be an option of getting tokens without token level evaluation.