Ejemplo n.º 1
0
 protected bool Equals(WhileNode other)
 {
     return(Equals(Condition, other.Condition) &&
            Equals(Body, other.Body));
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 protected bool Equals(WhileNode other)
 {
     return Equals(Condition, other.Condition) && Equals(Body, other.Body);
 }