17 public readonly
string Name;
22 public readonly
string Path;
57 IEnumerable<BadObject> result = importer.
Get(path);
69 if (ctx.Scope.HasLocal(name, ctx.Scope,
false))
74 ctx.Scope.DefineVariable(name, r, ctx.Scope,
new BadPropertyInfo(r.GetPrototype(),
true));
Describes a specific position inside a source file.
Base Implementation for all Expressions used inside the Script.
A Import Expression that is used to import a module from a specified path.
readonly string Name
The Name of the Import.
override IEnumerable< BadExpression > GetDescendants()
static IEnumerable< BadObject > Import(BadExecutionContext ctx, string name, string path)
Imports a module from the specified path and assigns it to the specified name.
readonly string Path
The Path to import.
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
BadImportExpression(string name, string path, BadSourcePosition position)
Creates a new Import Expression.
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 Class that manages the importing of modules.
IEnumerable< BadObject > Get(string path)
Imports a module from the specified path.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Stores Meta Information about a Property.
Contains Shared Data Structures and Functionality.
Contains the Error Objects for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.