LogiXpr
|
Functions for parsing expressions. More...
Functions | |
std::vector< std::string > | tokenize (std::string expression) |
Tokenize the expression. | |
bool | parse (std::string expression, std::shared_ptr< Expression > &root) |
Parse the expression and convert it to an abstract syntax tree. | |
Functions for parsing expressions.
bool parse | ( | std::string | expression, |
std::shared_ptr< Expression > & | root | ||
) |
Parse the expression and convert it to an abstract syntax tree.
expression | expression to be parsed |
root | to the root of the abstract syntax tree |
Definition at line 31 of file parser.cpp.
std::vector< std::string > tokenize | ( | std::string | expression | ) |
Tokenize the expression.
expression | expression to be tokenized |
Definition at line 8 of file parser.cpp.