ALib C++ Library
by
Library Version:
2510 R0
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
alib
expressions
parser.cpp
1
// #################################################################################################
2
// ALib C++ Library
3
//
4
// Copyright 2013-2025 A-Worx GmbH, Germany
5
// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
6
// #################################################################################################
7
#include "
alib_precompile.hpp
"
8
#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
9
# error "Symbol ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
10
#endif
11
#if ALIB_C20_MODULES
12
module
;
13
#endif
14
// ====================================== Global Fragment ======================================
15
#include "
alib/expressions/expressions.prepro.hpp
"
16
17
// =========================================== Module ==========================================
18
#if ALIB_C20_MODULES
19
module
ALib.Expressions
;
20
import
ALib.Expressions.Impl
;
21
#else
22
# include "
ALib.Expressions.H
"
23
# include "
ALib.Expressions.Impl.H
"
24
#endif
25
// ====================================== Implementation =======================================
26
namespace
alib
{
namespace
expressions
{
namespace
detail
{
27
28
// static creation method
29
Parser
*
Parser::Create
(
Compiler
& compiler )
30
{
31
return
compiler.
allocator
().New<
detail::ParserImpl
>(compiler, compiler.
allocator
);
32
}
33
34
35
}}}
// namespace [alib::expressions::detail]
ALib.Expressions.H
ALib.Expressions.Impl.H
alib_precompile.hpp
alib::expressions::Compiler
Definition
compiler.inl:56
alib::expressions::Compiler::allocator
MonoAllocator allocator
Definition
compiler.inl:74
alib::expressions::detail::ParserImpl
Definition
parser_impl.inl:24
expressions.prepro.hpp
ALib.Expressions.Impl
ALib.Expressions
alib::expressions::detail
Definition
compiler.inl:12
alib::expressions
Definition
compiler.cpp:32
alib
Definition
ALib.Boxing.StdFunctors.H:18
alib::expressions::detail::Parser
This detail class constitutes an abstract base class for expression parsers.
Definition
parser.inl:15
alib::expressions::detail::Parser::Create
static ALIB_DLL Parser * Create(Compiler &compiler)
Definition
parser.cpp:29