示例#1
0
 protected bool Equals(WhileNode other)
 {
     return(Equals(Condition, other.Condition) &&
            Equals(Body, other.Body));
 }
示例#2
0
        /// <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;
        }
示例#3
0
 protected bool Equals(WhileNode other)
 {
     return Equals(Condition, other.Condition) && Equals(Body, other.Body);
 }