BadScript 2
Loading...
Searching...
No Matches
BadExpressionCompiler.cs
Go to the documentation of this file.
2
4
10 where T : BadExpression
11{
20 {
21 if (expression.GetType() != typeof(T))
22 {
23 throw new BadCompilerException("Invalid Expression Type");
24 }
25
26 Compile(context, (T)expression);
27 }
28
35 public abstract void Compile(BadExpressionCompileContext context, T expression);
36}
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.