An implementation of this abstract interface class may be attached to field Compiler::Repository to enable an automated definition and retrieval of expression strings of nested expressions.
A default implementation, which uses typical ALib mechanics to define expression strings, is given with class StandardRepository.
More information about automated nested expressions and the use of this interface class is provided with manual chapter 10.5 Automated Named Expressions.
Definition at line 39 of file compiler.hpp.
#include <compiler.hpp>
Public Method Index: | |
virtual | ~ExpressionRepository () |
Virtual destructor. | |
virtual bool | Get (const String &identifier, AString &target)=0 |
|
inlinevirtual |
Virtual destructor.
Definition at line 43 of file compiler.hpp.
This method is called during compilation of expressions in the case a named expression is not found by method Compiler::GetNamed.
identifier | The name of the required expression. | |
[out] | target | The target to write the requested expression string to. |
true
, if the expression string could be retrieved, false
otherwise. If true
is returned and target is still empty, then the string is defined to be empty, which throws an exception on compilation. Implemented in StandardRepository.