BadScript 2
Loading...
Searching...
No Matches
BadAssignExpressionCompiler.cs
Go to the documentation of this file.
2
7
11public class BadAssignExpressionCompiler : BadExpressionCompiler<BadAssignExpression>
12{
14 public override void Compile(BadExpressionCompileContext context, BadAssignExpression expression)
15 {
16 context.Compile(expression.Left);
17 context.Compile(expression.Right);
18 context.Emit(BadOpCode.Assign, expression.Position);
19 }
20}
BadSourcePosition Position
The source Position of the Expression.
Implements the Assign Expression LEFT = RIGHT.
BadExpression Left
Left side that the right side will be assigned to.
BadExpression Right
Right side of the Expression.
override void Compile(BadExpressionCompileContext context, BadAssignExpression expression)
Contains the Binary Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7