ALib C++ Library
Library Version: 2402 R1
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 34 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 detail::ASTParse (const String &expressionString, NumberFormat *numberFormat, monomem::MonoAllocator *allocator)=0
 

Constructor(s) / Destructor Details::

◆ ~Parser()

virtual ~Parser ( )
inlinevirtual

Virtual destructor.

Definition at line 39 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 25 of file parser.cpp.

Here is the call graph for this function:

◆ Parse()

virtual detail::AST * Parse ( const String & expressionString,
NumberFormat * numberFormat,
monomem::MonoAllocator * allocator )
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.
allocatorUsed for temporary objects, including AST nodes, converted string data, etc.
Returns
The abstract syntax tree representing the expression.

Implemented in ParserImpl.


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