• Home
  • Raw
  • Download

Lines Matching refs:grammarName

111         self.grammarName = None
169 def compileGrammar(self, grammarName=None, options='', javaOptions=''): argument
170 if grammarName is None:
171 grammarName = self.moduleName + '.g'
179 if self.grammarName is None:
180 self.grammarName = os.path.splitext(grammarName)[0]
182 grammarPath = os.path.join(os.path.dirname(os.path.abspath(__file__)), grammarName)
194 if grammarName in compileErrorCache:
261 compileErrorCache[grammarName] = True
294 self.lexerModule = self.__load_module(self.grammarName)
295 cls = getattr(self.lexerModule, self.grammarName)
297 self.lexerModule = self.__load_module(self.grammarName + 'Lexer')
298 cls = getattr(self.lexerModule, self.grammarName + 'Lexer')
311 self.lexerModule = self.__load_module(self.grammarName)
312 cls = getattr(self.lexerModule, self.grammarName)
314 self.parserModule = self.__load_module(self.grammarName + 'Parser')
315 cls = getattr(self.parserModule, self.grammarName + 'Parser')
326 self.walkerModule = self.__load_module(self.grammarName + 'Walker')
327 cls = getattr(self.walkerModule, self.grammarName + 'Walker')
348 grammarName = m.group(3)
352 grammarPath = os.path.join(self.baseDir, grammarName + '.g')
358 return grammarName, grammarPath, grammarType
374 grammarName, grammarPath, grammarType = self.writeInlineGrammar(grammar)
385 lexerMod = self.__load_module(grammarName + 'Lexer')
386 parserMod = self.__load_module(grammarName + 'Parser')
390 lexerCls = getattr(lexerMod, grammarName + 'Lexer')
392 parserCls = getattr(parserMod, grammarName + 'Parser')
398 lexerMod = self.__load_module(grammarName)
402 lexerCls = getattr(lexerMod, grammarName)
408 parserMod = self.__load_module(grammarName)
412 parserCls = getattr(parserMod, grammarName)
418 walkerMod = self.__load_module(grammarName)
422 walkerCls = getattr(walkerMod, grammarName)