fesa-core  4.3.1
fesa::SortingParser Class Reference

#include <SortingParser.h>

Classes

class  BinaryOperation
 
class  Node
 
class  Value
 

Public Member Functions

const Nodeparse (const std::string &expression)
 
std::string getASTAsString () const
 
const NodegetASTRoot () const
 

Detailed Description

Parser that works on a sorting expression and produces a corresponding abstract syntax tree (AST).

Member Function Documentation

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.

Exceptions
std::runtime_errorin case of parse or syntax error

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