ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::expressions::detail::Program::CompileStorage Struct Reference

Description:

Data needed during compilation. An instance of this object is allocated in the temporary compile-time monotonic allocator.

Definition at line 57 of file program.hpp.

#include <program.hpp>

Collaboration diagram for alib::expressions::detail::Program::CompileStorage:
[legend]

Inner Type Index:

struct  ConditionalInfo
 Compile-time information on conditional operator jump positions. More...

Public Field Index:

StdVectorMA< VirtualMachine::Command * > Assembly
StdVectorMA< ConditionalInfoConditionalStack
ListMA< StringFunctionsWithNonMatchingArguments
StdVectorMA< VM::PCResultStack

Public Method Index:

 CompileStorage (MonoAllocator &compileTimeAllocator)

Field Details:

◆ Assembly

StdVectorMA<VirtualMachine::Command*> alib::expressions::detail::Program::CompileStorage::Assembly

The intermediate program listing. Commands are collected here during compilation. Only when finalized, the result is copied into the vector that the outer class program inherits from, which uses the non-temporary monotonic allocator.

Definition at line 62 of file program.hpp.

◆ ConditionalStack

StdVectorMA<ConditionalInfo> alib::expressions::detail::Program::CompileStorage::ConditionalStack

Stores the positions of current results while adding new commands. The third value is used for optimizing constant conditionals out.

Definition at line 85 of file program.hpp.

◆ FunctionsWithNonMatchingArguments

ListMA<String> alib::expressions::detail::Program::CompileStorage::FunctionsWithNonMatchingArguments

Needed during compilation. Collects information from plug-ins to create meaningful messages.

Definition at line 89 of file program.hpp.

◆ ResultStack

StdVectorMA<VM::PC> alib::expressions::detail::Program::CompileStorage::ResultStack

Used with compilation. Stores the positions of current result types while adding new commands.

Definition at line 66 of file program.hpp.

Constructor(s) / Destructor Details:

◆ CompileStorage()

alib::expressions::detail::Program::CompileStorage::CompileStorage ( MonoAllocator & compileTimeAllocator)
inline

Constructor.
The given allocator is used exclusively during compilation. Its memory is cleared (respectively reset to a previous state) after the compilation completed. The program is created in this allocator. Only when compilation is finished (and after all optimizations have been performed) it is copied to the compile-time scope's allocator.
(Refers to object MonoAllocator allocator.)

Parameters
compileTimeAllocatorThe allocator to use temporarily during compilation.

Definition at line 100 of file program.hpp.


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