예제 #1
0
파일: IfNode.cs 프로젝트: vplemyannik/lens
 protected bool Equals(IfNode other)
 {
     return(Equals(Condition, other.Condition) &&
            Equals(TrueAction, other.TrueAction) &&
            Equals(FalseAction, other.FalseAction));
 }
예제 #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;
        }
예제 #3
0
파일: IfNode.cs 프로젝트: menozz/lens
 protected bool Equals(IfNode other)
 {
     return Equals(Condition, other.Condition) && Equals(TrueAction, other.TrueAction) && Equals(FalseAction, other.FalseAction);
 }