AIMA.Core.Logic.FOL.Parsing.FOLParser.parseParanthizedSentence C# (CSharp) Method

parseParanthizedSentence() private method

private parseParanthizedSentence ( ) : Sentence
return Sentence
        private Sentence parseParanthizedSentence()
        {
            match("(");
            Sentence sen = parseSentence();
            while (binaryConnector(lookAhead(1)))
            {
                String connector = lookAhead(1).getText();
                consume();
                Sentence other = parseSentence();
                sen = new ConnectedSentence(connector, sen, other);
            }
            match(")");
            return sen; /* new ParanthizedSentence */

        }