mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare/parser] parseSpecialId must go through one of the subcases
Otherwise we might go through the method without creating leftHandSide
This commit is contained in:
committed by
RubenNumworks
parent
79f3ee43bc
commit
ef249b0bdb
@@ -444,10 +444,10 @@ void Parser::parseSpecialIdentifier(Expression & leftHandSide) {
|
||||
leftHandSide = Undefined::Builder();
|
||||
} else if (m_currentToken.compareTo(Unreal::Name()) == 0) {
|
||||
leftHandSide = Unreal::Builder();
|
||||
} else if (m_currentToken.compareTo("u") == 0
|
||||
|| m_currentToken.compareTo("v") == 0
|
||||
|| m_currentToken.compareTo("w") == 0)
|
||||
{
|
||||
} else {
|
||||
assert(m_currentToken.compareTo("u") == 0
|
||||
|| m_currentToken.compareTo("v") == 0
|
||||
|| m_currentToken.compareTo("w") == 0);
|
||||
/* Special case for sequences (e.g. "u(n)", "u{n}", ...)
|
||||
* We know that m_currentToken.text()[0] is either 'u', 'v' or 'w', so we do
|
||||
* not need to pass a code point to parseSequence. */
|
||||
|
||||
Reference in New Issue
Block a user