TorqueScript  0.2
Public Member Functions | List of all members
TorqueScript::CodeBlock Class Reference

A CodeBlock defines a piece of executable code generated from a single input (Ie. a file). This includes global executable code and subroutines, datablocks, etc. More...

#include <codeblock.hpp>

Public Member Functions

 CodeBlock (const InstructionSequence &instructions)
 
void execute (std::shared_ptr< ExecutionState > state)
 Executes all instructions contained in mInstructions within the provided context.
 
std::vector< std::string > disassemble ()
 Produces a disassembly of the CodeBlock code.
 

Detailed Description

A CodeBlock defines a piece of executable code generated from a single input (Ie. a file). This includes global executable code and subroutines, datablocks, etc.


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