ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::expressions::detail::Parser Struct Referenceabstract

Description:

This detail class constitutes an abstract base class for expression parsers.

Definition at line 14 of file parser.inl.

Inheritance diagram for alib::expressions::detail::Parser:
[legend]

Public Static Method Index:

static ALIB_DLL ParserCreate (Compiler &compiler)
 

Public Method Index:

virtual ~Parser ()
 Virtual destructor.
 
virtual detail::ASTBaseParse (const String &expressionString, NumberFormat *numberFormat)=0
 

Constructor(s) / Destructor Details:

◆ ~Parser()

virtual alib::expressions::detail::Parser::~Parser ( )
inlinevirtual

Virtual destructor.

Definition at line 17 of file parser.inl.

Method Details:

◆ Create()

Parser * alib::expressions::detail::Parser::Create ( Compiler & compiler)
static

Static method to create a parser object.

Parameters
compilerThe compiler that needs a parser.
Returns
The parser.

Definition at line 29 of file parser.cpp.

◆ Parse()

virtual detail::ASTBase * alib::expressions::detail::Parser::Parse ( const String & expressionString,
NumberFormat * numberFormat )
pure virtual

Parses the given expression string.

Note
The return value is hidden by using void*. This is to allow avoid flooding of boost header includes files to the code entities using module ALib Expressions.
Parameters
expressionStringThe string to parse.
numberFormatUsed to parse literal numbers.
Returns
The abstract syntax tree representing the expression.

Implemented in alib::expressions::detail::ParserImpl.


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