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