Exemplo n.º 1
0
 public ScriptApp(LanguageRuntime runtime)
 {
     Runtime  = runtime;
     Language = Runtime.Language;
     DataMap  = new AppDataMap(Language.Grammar.CaseSensitive);
     Init();
 }
Exemplo n.º 2
0
    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(); 
    }
Exemplo n.º 3
0
 public ScriptApp(LanguageRuntime runtime)
 {
     Runtime = runtime;
       Language = Runtime.Language;
       DataMap = new AppDataMap(Language.Grammar.CaseSensitive);
       Init();
 }
Exemplo n.º 4
0
        }                                             //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();
        }
Exemplo n.º 5
0
        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();
        }
Exemplo n.º 6
0
 public ScriptApp(AppDataMap dataMap)
 {
     DataMap = dataMap;
     Init();
 }
Exemplo n.º 7
0
 public ScriptApp(AppDataMap dataMap) {
   DataMap = dataMap;
   Init(); 
 }