• Home
  • Raw
  • Download

Lines Matching refs:grammarName

113         self.grammarName = None
183 def compileGrammar(self, grammarName=None, options='', javaOptions=''): argument
184 if grammarName is None:
185 grammarName = self.moduleName + '.g'
193 if self.grammarName is None:
194 self.grammarName = os.path.splitext(grammarName)[0]
196 grammarPath = os.path.join(os.path.dirname(os.path.abspath(__file__)), grammarName)
210 if grammarName in compileErrorCache:
280 compileErrorCache[grammarName] = True
315 self.lexerModule = self.__load_module(self.grammarName)
316 cls = getattr(self.lexerModule, self.grammarName)
318 self.lexerModule = self.__load_module(self.grammarName + 'Lexer')
319 cls = getattr(self.lexerModule, self.grammarName + 'Lexer')
332 self.lexerModule = self.__load_module(self.grammarName)
333 cls = getattr(self.lexerModule, self.grammarName)
335 self.parserModule = self.__load_module(self.grammarName + 'Parser')
336 cls = getattr(self.parserModule, self.grammarName + 'Parser')
347 self.walkerModule = self.__load_module(self.grammarName + 'Walker')
348 cls = getattr(self.walkerModule, self.grammarName + 'Walker')
371 grammarName = m.group(3)
375 grammarPath = os.path.join(self.baseDir, grammarName + '.g')
382 return grammarName, grammarPath, grammarType
399 grammarName, grammarPath, grammarType = self.writeInlineGrammar(grammar)
410 lexerMod = self.__load_module(grammarName + 'Lexer')
411 parserMod = self.__load_module(grammarName + 'Parser')
415 lexerCls = getattr(lexerMod, grammarName + 'Lexer')
417 parserCls = getattr(parserMod, grammarName + 'Parser')
423 lexerMod = self.__load_module(grammarName)
427 lexerCls = getattr(lexerMod, grammarName)
433 parserMod = self.__load_module(grammarName)
437 parserCls = getattr(parserMod, grammarName)
443 walkerMod = self.__load_module(grammarName)
447 walkerCls = getattr(walkerMod, grammarName)