This detail class constitutes an abstract base class for expression parsers.
Definition at line 34 of file parser.hpp.
#include <parser.hpp>
Public Static Method Index: | |
static ALIB_API Parser * | Create (Compiler &compiler) |
Public Method Index: | |
virtual | ~Parser () |
virtual detail::AST * | Parse (const String &expressionString, NumberFormat *numberFormat, monomem::MonoAllocator *allocator)=0 |
|
inlinevirtual |
Virtual destructor.
Definition at line 39 of file parser.hpp.
Static method to create a parser object.
compiler | The compiler that needs a parser. |
Definition at line 25 of file parser.cpp.
|
pure virtual |
Parses the given expression string.
void*
. This is to allow avoid flooding of boost
header includes files to the code entities using module ALib Expressions .expressionString | The string to parse. |
numberFormat | Used to parse literal numbers. |
allocator | Used for temporary objects, including AST nodes, converted string data, etc. |
Implemented in ParserImpl.