BadScript 2
Loading...
Searching...
No Matches
BadFunctionExpressionCompiler.cs
Go to the documentation of this file.
3
8
12public class BadFunctionExpressionCompiler : BadExpressionCompiler<BadFunctionExpression>
13{
15 public override void Compile(BadExpressionCompileContext context, BadFunctionExpression expression)
16 {
18 $"Can not compile '{expression.GetHeader()}'",
19 BadLogMask.GetMask("Compiler", "EVAL"),
20 expression.Position
21 );
22
23 context.Emit(BadOpCode.Eval, expression.Position, expression);
24 }
25}
Implements a Mask for Log Messages.
Definition BadLogMask.cs:7
static BadLogMask GetMask(params BadLogMask[] masks)
Returns a combined mask of all masks provided.
Public facing interface for a logger.
Definition BadLogger.cs:7
static void Warn(string message)
Writes a Warning to the Message Handler.
Definition BadLogger.cs:56
BadSourcePosition Position
The source Position of the Expression.
override void Compile(BadExpressionCompileContext context, BadFunctionExpression expression)
Contains Logging system for the BadScript Runtime.
Definition BadLog.cs:6
Contains the Function Expressions for the BadScript2 Language.
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition BadOpCode.cs:7