BadScript 2
Loading...
Searching...
No Matches
BadThrowExpressionCompiler.cs
Go to the documentation of this file.
2
4
8public class BadThrowExpressionCompiler : BadExpressionCompiler<BadThrowExpression>
9{
11 public override void Compile(BadExpressionCompileContext context, BadThrowExpression expression)
12 {
13 context.Compile(expression.Right);
14 context.Emit(BadOpCode.Throw, expression.Position);
15 }
16}
BadSourcePosition Position
The source Position of the Expression.
Implements the Throw Expression that is used to raise errors inside the Script.
BadExpression Right
The Error Object that is thrown.
override void Compile(BadExpressionCompileContext context, BadThrowExpression expression)
Contains the Controlflow Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7