fesa-core
5.0.1
|
#include <SortingParser.h>
Classes | |
class | BinaryOperation |
class | Node |
class | Value |
Public Member Functions | |
const Node * | parse (const std::string &expression) |
std::string | getASTAsString () const |
const Node * | getASTRoot () const |
Parser that works on a sorting expression and produces a corresponding abstract syntax tree (AST).
std::string fesa::SortingParser::getASTAsString | ( | ) | const |
Returns a string containing a human readable representation of the AST.
const SortingParser::Node * fesa::SortingParser::getASTRoot | ( | ) | const |
Returns the AST root node.
const SortingParser::Node * fesa::SortingParser::parse | ( | const std::string & | expression | ) |
Parses an expression and produces an AST. The root node of the AST is returned.
std::runtime_error | in case of parse or syntax error |