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