The Parser class is responsible for parsing a mathematical expression string and converting it into an abstract syntax tree (AST) of TreeNodeBase nodes. More...
#include <Parser.h>
Public Member Functions | |
| Parser ()=default | |
| Default constructor. | |
| ~Parser ()=default | |
| Default destructor. | |
| void | setParserString (const QString &p) |
| Sets the string to be parsed. | |
| QString | parserString () const |
| Returns the current parser string. | |
| TreeNodeBase * | parse () |
| Parses the input string and returns the root of the resulting AST. | |
The Parser class is responsible for parsing a mathematical expression string and converting it into an abstract syntax tree (AST) of TreeNodeBase nodes.
| TreeNodeBase * Parser::parse | ( | ) |
Parses the input string and returns the root of the resulting AST.
| QString Parser::parserString | ( | ) | const |
Returns the current parser string.
| void Parser::setParserString | ( | const QString & | p | ) |
Sets the string to be parsed.
| p | The input expression string. |