BadScript 2
Loading...
Searching...
No Matches
BadStringExpressionCompiler.cs
Go to the documentation of this file.
3
5
9public class BadStringExpressionCompiler : BadExpressionCompiler<BadStringExpression>
10{
12 public override void Compile(BadExpressionCompileContext context, BadStringExpression expression)
13 {
14 context.Emit(BadOpCode.Push, expression.Position, (BadObject)expression.Value.Substring(1, expression.Value.Length - 2));
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
override void Compile(BadExpressionCompileContext context, BadStringExpression 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