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