Beispiel #1
0
 protected bool Equals(IfNode other)
 {
     return(Equals(Condition, other.Condition) &&
            Equals(TrueAction, other.TrueAction) &&
            Equals(FalseAction, other.FalseAction));
 }
Beispiel #2
0
        /// <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;
        }
Beispiel #3
0
 protected bool Equals(IfNode other)
 {
     return Equals(Condition, other.Condition) && Equals(TrueAction, other.TrueAction) && Equals(FalseAction, other.FalseAction);
 }