BadScript 2
Loading...
Searching...
No Matches
BadBooleanExpressionCompiler.cs
Go to the documentation of this file.
3
5
9public class BadBooleanExpressionCompiler : BadExpressionCompiler<BadBooleanExpression>
10{
12 public override void Compile(BadExpressionCompileContext context, BadBooleanExpression expression)
13 {
14 context.Emit(BadOpCode.Push, expression.Position, expression.Value ? BadObject.True : BadObject.False);
15 }
16}
BadSourcePosition Position
The source Position of the Expression.
BadObject Value
The Constant Value of the Expression.
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
static readonly BadObject True
The True Value for the BadScript Language.
Definition BadObject.cs:33
static readonly BadObject False
The False Value for the BadScript Language.
Definition BadObject.cs:38
override void Compile(BadExpressionCompileContext context, BadBooleanExpression expression)
Contains the Constant Expressions for the BadScript2 Language.
Contains the Runtime Objects.
Definition BadArray.cs:10
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7