BadScript 2
Loading...
Searching...
No Matches
BadExpressionCompiler.cs
Go to the documentation of this file.
2
4
10 where T : BadExpression
11{
12#region IBadExpressionCompiler Members
13
22 {
23 if (expression.GetType() != typeof(T))
24 {
25 throw new BadCompilerException("Invalid Expression Type");
26 }
27
28 Compile(context, (T)expression);
29 }
30
31#endregion
32
39 public abstract void Compile(BadExpressionCompileContext context, T expression);
40}
Base Implementation for all Expressions used inside the Script.
Gets thrown when a Compiler is not able to compile a specific BadExpression.
void IBadExpressionCompiler. Compile(BadExpressionCompileContext context, BadExpression expression)
Compiles an Expression.
void Compile(BadExpressionCompileContext context, T expression)
Compiles an Expression.
void Compile(BadExpressionCompileContext context, BadExpression expression)
Compiles the given BadExpression into a set of BadInstructions.
Contains the Expressions for the BadScript2 Language.