70 new BadFunctionParameter(
"instance", false, true, false, null, BadAnyPrototype.Instance),
71 new BadFunctionParameter(
"member", false, true, false, null, BadMemberInfo.Prototype)
82 new BadFunctionParameter(
"eventArgs", false, true, false, null, MemberChangingEventArgs),
93 new BadFunctionParameter(
"eventArgs", false, true, false, null, MemberChangedEventArgs),
119 private static readonly Dictionary<string, BadObjectReference>
s_NumberStaticMembers =
new Dictionary<string, BadObjectReference>
135 private static readonly Dictionary<string, BadObjectReference>
s_BooleanStaticMembers =
new Dictionary<string, BadObjectReference>
151 private static readonly Dictionary<string, BadObjectReference>
s_StringStaticMembers =
new Dictionary<string, BadObjectReference>
155 "string.IsNullOrEmpty",
174 return string.IsNullOrEmpty(str.Value);
183 if (decimal.TryParse(str.Value, out decimal d))
198 if (
bool.TryParse(str.Value, out
bool d))
209 private static readonly List<BadClassPrototype>
s_NativeTypes =
new List<BadClassPrototype>
243 public static IEnumerable<BadClassPrototype> NativeTypes => s_NativeTypes;
415 return s_NativeTypes.FirstOrDefault(x => x.Name == name) ??
425 if (s_NativeTypes.Any(x => x.Name == native.
Name))
430 s_NativeTypes.Add(native);
449 (_, a) => constructor(a),
466 Dictionary<string, BadObjectReference> staticMembers,
471 (_, a) => constructor(a),
517 return Create<T>(name, constructor, interfaces);
532 Dictionary<string, BadObjectReference> staticMembers,
535 return Create<T>(name, constructor, staticMembers, interfaces);
Contains Static Data for the BadScript Language.
const string ARRAY_ACCESS_REVERSE_OPERATOR_NAME
const string ARRAY_ACCESS_OPERATOR_NAME
Implements a Function Constraint for an Interface The Constraints specifies how a specific function s...
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
static BadClassPrototype Prototype
Implements the Scope for the Script Engine.
static BadClassPrototype Prototype
A Class Prototype for the Scope.
Implements the Error Object Type.
static readonly BadClassPrototype Prototype
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
Interop Function taking an array of arguments.
The Base Class for all BadScript Objects.
Implements the base functionality for a BadScript Reference.
static BadObjectReference Make(string refText, Func< BadObject > getter, Action< BadObject, BadPropertyInfo?>? setter=null, Action? delete=null)
Creates a new Reference Object.
Provides function parameter info.
Implements a Native String.
static readonly BadString Empty
The Any Prototype, Base type for all types.
static readonly BadAnyPrototype Instance
The Instance of the BadAnyPrototype.
Implements a Class Prototype for the BadScript Language.
static readonly BadClassPrototype Prototype
The Prototype of the ClassPrototype(can not be used)
string Name
The Name of the Type.
Helper Class that Builds a Native Class from a Prototype.
static readonly BadInterfacePrototype Attribute
static readonly BadInterfacePrototype MemberChangedEventArgs
static BadInterfaceConstraint[] ChangedAttributeConstraints(BadObject[] arg)
static readonly BadInterfacePrototype MemberChangingEventArgs
static readonly BadInterfacePrototype ImportHandler
static readonly BadInterfacePrototype ChangeAttribute
static readonly BadInterfacePrototype Disposable
The IDisposible Interface Prototype.
static BadInterfaceConstraint[] MemberChangingEventArgsConstraints(BadObject[] arg)
static BadInterfaceConstraint[] DisposableConstraints(BadObject[] typeParams)
The IDisposible Interface Constraints.
static readonly BadInterfacePrototype Enumerable
The IEnumerable Interface Prototype.
static readonly BadInterfacePrototype MemberChangeEventArgs
static readonly Dictionary< string, BadObjectReference > s_StringStaticMembers
static BadObject ParseBoolean(BadExecutionContext ctx, BadObject[] arg)
static BadInterfaceConstraint[] ChangeAttributeConstraints(BadObject[] arg)
static BadInterfaceConstraint[] InitializeAttributeConstraints(BadObject[] arg)
static BadClassPrototype GetNative(string name)
Returns a Native Class Prototype for the given Native Type.
static readonly BadInterfacePrototype InitializeAttribute
static BadInterfaceConstraint[] EnumerableConstraints(BadObject[] typeParams)
The IEnumerable Interface Constraints.
static readonly BadInterfacePrototype ArrayLike
The IArray Interface Prototype.
static BadInterfaceConstraint[] ImportHandlerConstraints(BadObject[] typeParams)
static readonly Dictionary< string, BadObjectReference > s_BooleanStaticMembers
static BadObject StringIsNullOrEmpty(BadExecutionContext ctx, BadObject[] arg)
static void AddNative(BadClassPrototype native)
Adds a native Type.
static BadInterfaceConstraint[] ArrayConstraints(BadObject[] typeParams)
The IArray Interface Constraints.
static readonly BadInterfacePrototype ChangedAttribute
static BadInterfaceConstraint[] EnumeratorConstraints(BadObject[] typeParams)
The IEnumerator Interface Constraints.
static readonly BadInterfacePrototype Enumerator
The IEnumerator Interface Prototype.
static BadObject ParseNumber(BadExecutionContext ctx, BadObject[] arg)
static BadInterfaceConstraint[] MemberChangeEventArgsConstraints(BadObject[] arg)
static readonly Dictionary< string, BadObjectReference > s_NumberStaticMembers
static readonly List< BadClassPrototype > s_NativeTypes
Collection of all Native Class Prototypes.
Helper Class for Creating Native Class Prototypes.
static Func< BadObject[], BadObject > GetConstructor(string name)
Returns a Constructor for the given Native Type.
Implements a Native Class Prototype.
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.
Implements an Interface Constraint.
Implements a BadScript Interface Prototype.
BadObject CreateGeneric(BadObject[] args)
Resolves the Generic Object to a concrete type.
Implements the Interface for Native Strings.
Contains Shared Data Structures and Functionality.
Contains the Type Expressions for the BadScript2 Language.
Contains the Reader Tokens for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains the Interop Function Classes for the BadScript2 Language.
Contains Runtime Function Objects.
Contains the Native Runtime Objects.
Contains Runtime Interface Objects.
Contains Runtime Type Objects.