69 foreach (
BadObject o
in nativeType.CreateInstance(context, args))
77 foreach (
BadObject o
in proto.CreateInstance(context))
84 obj = obj.Dereference(pos);
103 foreach (
BadObject o
in func.Invoke(args, context))
109 foreach (
BadObject o
in cls.Scope.InitializeAttributes())
137 List<BadObject> args =
new List<BadObject>();
Describes a specific position inside a source file.
Contains Static Data for the BadScript Language.
const string CONSTRUCTOR_NAME
Base Implementation for all Expressions used inside the Script.
IEnumerable< BadExpression > GetDescendantsAndSelf()
Returns all Descendants of the Expression and the Expression itself.
BadSourcePosition Position
The source Position of the Expression.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
Implements the Invocation Expression.
BadExpression Left
The Left side of the Invocation.
override void Optimize()
Uses the Constant Folding Optimizer to optimize the expression.
IEnumerable< BadObject > GetArgs(BadExecutionContext context, List< BadObject > args)
Returns the argument objects.
Implements the New Expression.
static IEnumerable< BadObject > CreateObject(BadClassPrototype proto, BadExecutionContext context, BadObject[] args, BadSourcePosition pos)
Creates an Instance of the Specified Class prototype.
BadNewExpression(BadInvocationExpression right, BadSourcePosition position)
Constructor of the New Expression.
override void Optimize()
Uses the Constant Folding Optimizer to optimize the expression.
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
BadInvocationExpression Right
The Constructor Invocation.
override IEnumerable< BadExpression > GetDescendants()
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
The Base Class for all BadScript Objects.
virtual BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements a function that can be called from the script.
Implements a Native Class Prototype.
Implements a Type Instance in the BadScript Language.
Implements a Class Prototype for the BadScript Language.
The Void Prototype, can be assigned to nothing, can not be inherited from, can not be instantiated....
static BadVoidPrototype Instance
The Instance of the BadVoidPrototype.
Contains Shared Data Structures and Functionality.
Contains the Function Expressions for the BadScript2 Language.
Contains the Type Expressions for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains Runtime Function Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.