mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare/parser] Error when Equal does not have a left hand side
This commit is contained in:
@@ -164,6 +164,10 @@ void Parser::parseCaret(Expression & leftHandSide) {
|
||||
}
|
||||
|
||||
void Parser::parseEqual(Expression & leftHandSide) {
|
||||
if (leftHandSide.isUninitialized()) {
|
||||
m_status = Status::Error; // Equal must have a left operand
|
||||
return;
|
||||
}
|
||||
if (leftHandSide.type() == ExpressionNode::Type::Equal) {
|
||||
m_status = Status::Error; // Equal is not associative
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user