121 if (ctx.Scope.ReturnValue !=
null)
123 yield
return ctx.Scope.ReturnValue;
Describes a specific position inside a source file.
string GetPositionInfo()
Returns position info. Format: file://[FileName] : Line [Line].
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
Implements the Scope for the Script Engine.
BadScope CreateChild(string name, BadScope? caller, bool? useVisibility, BadScopeFlags flags=BadScopeFlags.RootScope)
Creates a subscope of the current scope.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements a function that can be called from the script.
static void ApplyParameters(string funcStr, BadFunctionParameter[] parameters, BadExecutionContext context, BadObject[] args, BadSourcePosition? position=null)
Applies the function arguments to the context of the function.
Provides function parameter info.
Implements a Class Prototype for the BadScript Language.
Implements a Compiled Function.
readonly bool m_UseOverrides
Indicates if the Function should use Operator Overrides.
override BadMetaData MetaData
BadExecutionContext CreateExecutionContext(BadExecutionContext caller, BadObject[] args)
override string ToString()
string MakeSignature()
Creates a Signature for this Function.
readonly BadScope m_ParentScope
The Compiled Function's Parent Scope.
readonly BadSourcePosition m_Position
The Original Source Position.
BadCompiledFunction(BadInstruction[] instructions, bool useOverrides, BadScope parentScope, BadSourcePosition position, BadWordToken? name, bool isConstant, bool isStatic, BadMetaData? metaData, BadClassPrototype returnType, bool isSingleLine, params BadFunctionParameter[] parameters)
Creates a new BadCompiledFunction instance.
readonly BadInstruction[] m_Instructions
The Compiled Function's Instructions.
override IEnumerable< BadObject > InvokeBlock(BadObject[] args, BadExecutionContext caller)
readonly string m_StringSignature
The Signature.
Implements a Virtual Machine for the BadScript Language.
Contains Shared Data Structures and Functionality.
Contains the Parser for the BadScript2 Language.
Contains the Reader Tokens for the BadScript2 Language.
Contains Runtime Function Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.
Contains the Virtual Machine Implementation.
BadScopeFlags
Defines Different Behaviours for the Current Scope.
Implements a single instruction for the BadVirtualMachine.