MathParser\ComplexMathParser Class Reference

Public Member Functions

 setSimplifying ($flag)
 
 parse ($text)
 Parse the given mathematical expression into an abstract syntax tree. More...
 
 getTokenList ()
 Return the token list for the last parsed expression. More...
 
 getTree ()
 Return the AST of the last parsed expression. More...
 

Private Attributes

 $lexer
 StdMathLexer $lexer instance of StdMathLexer used for tokenizing.
 
 $parser
 Parser $parser instance of Parsed used for the actual parsing.
 
 $tokens
 Token[] $tokens list of tokens generated by the Lexer.
 
 $tree
 Node $tree AST generated by the parser.
 

Member Function Documentation

MathParser\ComplexMathParser::getTokenList ( )

Return the token list for the last parsed expression.

Return values
Token[]
MathParser\ComplexMathParser::getTree ( )

Return the AST of the last parsed expression.

Return values
Node
MathParser\ComplexMathParser::parse (   $text)

Parse the given mathematical expression into an abstract syntax tree.

Parameters
string$textInput
Return values
Node

The documentation for this class was generated from the following file: