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

parse() public method

public parse ( String inputString ) : ParseTreeNode
inputString String
return ParseTreeNode
        public override ParseTreeNode parse(String inputString)
        {
            lexer = new PELexer(inputString);
            fillLookAheadBuffer();
            return parseSentence();
        }

Usage Example

Beispiel #1
0
 public void setUp()
 {
     parser = new PEParser();
     trueSentence = (Sentence)parser.parse("true");
     falseSentence = (Sentence)parser.parse("false");
     andSentence = (Sentence)parser.parse("(P  AND  Q)");
     orSentence = (Sentence)parser.parse("(P  OR  Q)");
     impliedSentence = (Sentence)parser.parse("(P  =>  Q)");
     biConditionalSentence = (Sentence)parser.parse("(P  <=>  Q)");
     m = new Model();
 }
All Usage Examples Of AIMA.Core.Logic.Propositional.Parsing.PEParser::parse