Esempio n. 1
0
        public readonly Parser Parser; //combination of Scanner (with token filters inside) and CoreParser

        #endregion Fields

        #region Constructors

        public Compiler(Grammar grammar)
        {
            Language = new LanguageData(grammar);
              var builder = new LanguageDataBuilder(Language);
              builder.Build();
              this.Language = builder.Language;
              if (Language.CanParse())
            Parser = new Parser(Language);
        }
Esempio n. 2
0
 public Compiler(LanguageData language)
 {
     this.Language = language;
       Parser = new Parser(Language);
 }