BadScript 2
Loading...
Searching...
No Matches
BadVariableExpressionCompiler.cs
Go to the documentation of this file.
3
5
9public class BadVariableExpressionCompiler : BadExpressionCompiler<BadVariableExpression>
10{
12 public override void Compile(BadExpressionCompileContext context, BadVariableExpression expression)
13 {
14 foreach (BadExpression parameter in expression.GenericParameters)
15 {
16 context.Compile(parameter);
17 }
18
19 context.Emit(BadOpCode.LoadVar, expression.Position, expression.Name, expression.GenericParameters.Count);
20 }
21}
Base Implementation for all Expressions used inside the Script.
override void Compile(BadExpressionCompileContext context, BadVariableExpression expression)
Contains the Variable Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7