ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Static Methods | Public Methods | List of all members
Parser Struct Referenceabstract

#include <parser.hpp>

Inheritance diagram for Parser:
[legend]

Class Description


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

Definition at line 34 of file parser.hpp.

Public Static Methods

static ALIB_API ParserCreate (Compiler &compiler)
 

Public Methods

virtual ~Parser ()
 
virtual detail::ASTParse (const String &expressionString, NumberFormat *numberFormat, monomem::MonoAllocator *allocator)=0
 

Constructor & Destructor Documentation

◆ ~Parser()

virtual ~Parser ( )
inlinevirtual

Virtual destructor.

Definition at line 39 of file parser.hpp.

Member Function Documentation

◆ 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.

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