AIMA.Core.Logic.Propositional.Parsing.PEParser.parseSentence C# (CSharp) Method

parseSentence() private method

private parseSentence ( ) : Sentence
return AIMA.Core.Logic.Propositional.Parsing.Ast.Sentence
        private Sentence parseSentence()
        {
            if (detectAtomicSentence())
            {
                return parseAtomicSentence();
            }
            else if (detectBracket())
            {
                return parseBracketedSentence();
            }
            else if (detectNOT())
            {
                return parseNotSentence();
            }
            else
            {

                throw new ApplicationException("Parser Error Token = " + lookAhead(1));
            }
        }