Esempio n. 1
0
 public Parser(params object[] languageParserArguments)
 {
     _languageParser = LanguageParserService.GetService().GetLanguageParser <T>(languageParserArguments);
     _languageParser.FixPatterns();
     _lexer = new Lexer.Lexer(_languageParser.TokenDefinitions.Values.ToList());
 }
Esempio n. 2
0
 internal static LanguageParserService GetService()
 {
     return(_languageParserService ?? (_languageParserService = new LanguageParserService()));
 }