예제 #1
0
 public ScriptApp(LanguageRuntime runtime)
 {
     Runtime  = runtime;
     Language = Runtime.Language;
     DataMap  = new AppDataMap(Language.Grammar.CaseSensitive);
     Init();
 }
예제 #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(); 
    }
예제 #3
0
파일: ScriptApp.cs 프로젝트: dbremner/irony
 public ScriptApp(LanguageRuntime runtime)
 {
     Runtime = runtime;
       Language = Runtime.Language;
       DataMap = new AppDataMap(Language.Grammar.CaseSensitive);
       Init();
 }
예제 #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();
        }
예제 #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();
        }
예제 #6
0
 public ScriptApp(AppDataMap dataMap)
 {
     DataMap = dataMap;
     Init();
 }
예제 #7
0
 public ScriptApp(AppDataMap dataMap) {
   DataMap = dataMap;
   Init(); 
 }