Add ret function
This commit is contained in:
@@ -66,6 +66,11 @@ namespace Interpret
|
||||
FunctionCallStatement(std::string const & label);
|
||||
};
|
||||
|
||||
struct ReturnFromFunctionStatement : Statement
|
||||
{
|
||||
void Execute(Execute::Flags & flags, Execute::State & state, Execute::Registers & registers) override;
|
||||
};
|
||||
|
||||
struct SetStatement : Statement
|
||||
{
|
||||
Value firstArgument;
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace Token
|
||||
ShiftIntegerRight,
|
||||
Jump,
|
||||
CallFunction,
|
||||
ReturnFromFunction,
|
||||
LessThanInteger,
|
||||
GreaterThanInteger,
|
||||
EqualInteger,
|
||||
|
||||
Reference in New Issue
Block a user