public ScriptApp(LanguageRuntime runtime) { Runtime = runtime; Language = Runtime.Language; DataMap = new AppDataMap(Language.Grammar.CaseSensitive); Init(); }
public ParseTree LastScript { get; private set; } //the root node of the last executed script #region Constructors public ScriptApp(LanguageData language) { Language = language; var grammar = language.Grammar as InterpretedLanguageGrammar; Runtime = grammar.CreateRuntime(language); DataMap = new AppDataMap(Language.Grammar.CaseSensitive); Init(); }
} //the root node of the last executed script #region Constructors public ScriptApp(LanguageData language) { Language = language; var grammar = language.Grammar as InterpretedLanguageGrammar; Runtime = grammar.CreateRuntime(language); DataMap = new AppDataMap(Language.Grammar.CaseSensitive); Init(); }
public ScriptApp(LanguageData language) { Language = language; var grammar = language.Grammar as InterpretedLanguageGrammar; Runtime = grammar?.CreateRuntime(language) ?? throw new InvalidOperationException(); DataMap = new AppDataMap(Language.Grammar.CaseSensitive); Initialize(); }
public ScriptApp(AppDataMap dataMap) { DataMap = dataMap; Init(); }