コード例 #1
0
ファイル: WhileNode.cs プロジェクト: vplemyannik/lens
 protected bool Equals(WhileNode other)
 {
     return(Equals(Condition, other.Condition) &&
            Equals(Body, other.Body));
 }
コード例 #2
0
ファイル: LensParser.cs プロジェクト: TrickyCat/lens
        /// <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
ファイル: WhileNode.cs プロジェクト: TrickyCat/lens
 protected bool Equals(WhileNode other)
 {
     return Equals(Condition, other.Condition) && Equals(Body, other.Body);
 }