ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
Parser Struct Referenceabstract

Description:

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

Definition at line 23 of file parser.hpp.

#include <parser.hpp>

Inheritance diagram for Parser:
[legend]

Public Static Method Index:

static ALIB_API ParserCreate (Compiler &compiler)
 

Public Method Index:

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

Constructor(s) / Destructor Details:

◆ ~Parser()

virtual ~Parser ( )
inlinevirtual

Virtual destructor.

Definition at line 26 of file parser.hpp.

Method Details:

◆ Create()

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 19 of file parser.cpp.

◆ Parse()

virtual detail::AST * 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 ParserImpl.


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