BadScript 2
Loading...
Searching...
No Matches
BadConstantExpressionCompiler.cs
Go to the documentation of this file.
2
4
8public class BadConstantExpressionCompiler : BadExpressionCompiler<BadConstantExpression>
9{
11 public override void Compile(BadExpressionCompileContext context, BadConstantExpression expression)
12 {
13 context.Emit(BadOpCode.Push, expression.Position, expression.Value);
14 }
15}
BadSourcePosition Position
The source Position of the Expression.
BadObject Value
The Constant Value of the Expression.
override void Compile(BadExpressionCompileContext context, BadConstantExpression expression)
Contains the Constant Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7