BadScript 2
Loading...
Searching...
No Matches
BadBreakExpressionCompiler.cs
Go to the documentation of this file.
2
7
11public class BadBreakExpressionCompiler : BadExpressionCompiler<BadBreakExpression>
12{
14 public override void Compile(BadExpressionCompileContext context, BadBreakExpression expression)
15 {
16 context.Emit(BadOpCode.Break, expression.Position);
17 }
18}
BadSourcePosition Position
The source Position of the Expression.
Implements the Break Expression that is used to prematurely exit a loop.
override void Compile(BadExpressionCompileContext context, BadBreakExpression expression)
Contains the Controlflow Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7