protected bool Equals(WhileNode other) { return(Equals(Condition, other.Condition) && Equals(Body, other.Body)); }
/// <summary> /// while_header = "while" line_expr "do" /// </summary> private WhileNode parseWhileHeader() { if (!check(LexemType.While)) return null; var node = new WhileNode(); node.Condition = ensure(parseLineExpr, ParserMessages.ConditionExpected); ensure(LexemType.Do, ParserMessages.SymbolExpected, "do"); return node; }
protected bool Equals(WhileNode other) { return Equals(Condition, other.Condition) && Equals(Body, other.Body); }