/// <summary> /// Creates new instance with default Functions/Types/Scope. /// </summary> public Context() { Types = new RegisteredTypes(); ExternalFunctions = new ExternalFunctions(); Functions = new RegisteredFunctions(); Words = new RegisteredWords(); Plugins = new RegisteredPlugins(); Symbols = new Symbols(); Memory = new Memory(); Limits = new Limits(this); TokenAliases = new Dictionary <string, Token>(); var stack = new CallStack(Limits.CheckCallStack); Callbacks = new Callbacks(); State = new LangState(stack); Units = new Units(); Methods = new RegisteredMethods(); Plugins.Init(); }
/// <summary> /// Creates new instance with default Functions/Types/Scope. /// </summary> public Context() { Types = new RegisteredTypes(); ExternalFunctions = new ExternalFunctions(); Words = new RegisteredWords(); Plugins = new RegisteredPlugins(); PluginsMeta = new MetaPluginContainer(); Symbols = new Symbols(); Memory = new Memory(); Limits = new Limits(this); TokenAliases = new Dictionary<string, Token>(); var stack = new CallStack(Limits.CheckCallStack); Callbacks = new Callbacks(); State = new LangState(stack); Units = new Units(); Methods = new RegisteredMethods(); Plugins.Init(); }