BadScript 2
Loading...
Searching...
No Matches
BadFormattedStringExpressionCompiler.cs
Go to the documentation of this file.
2
7
11public class BadFormattedStringExpressionCompiler : BadExpressionCompiler<BadFormattedStringExpression>
12{
14 public override void Compile(BadExpressionCompileContext context, BadFormattedStringExpression expression)
15 {
16 context.Compile(expression.Expressions, false);
17 context.Emit(BadOpCode.FormatString, expression.Position, expression.Value, expression.ExpressionCount);
18 }
19}
BadSourcePosition Position
The source Position of the Expression.
BadObject Value
The Constant Value of the Expression.
IEnumerable< BadExpression > Expressions
The Expressions that will be evaluated during the creation of the formatted string.
override void Compile(BadExpressionCompileContext context, BadFormattedStringExpression expression)
Contains the Variable Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7