protected bool Equals(IfNode other) { return(Equals(Condition, other.Condition) && Equals(TrueAction, other.TrueAction) && Equals(FalseAction, other.FalseAction)); }
/// <summary> /// if_header = "if" line_expr "then" /// </summary> private IfNode parseIfHeader() { if (!check(LexemType.If)) return null; var node = new IfNode(); node.Condition = ensure(parseLineExpr, ParserMessages.ConditionExpected); ensure(LexemType.Then, ParserMessages.SymbolExpected, "then"); return node; }
protected bool Equals(IfNode other) { return Equals(Condition, other.Condition) && Equals(TrueAction, other.TrueAction) && Equals(FalseAction, other.FalseAction); }