Home | History | Annotate | Download | only in antlr3

Lines Matching full:options

104         options, args = self.parseOptions(argv)
106 self.setUp(options)
108 if options.interactive:
117 self.parseStream(options, inStream)
120 if options.input is not None:
121 inStream = antlr3.ANTLRStringStream(options.input)
125 args[0], encoding=options.encoding
130 self.stdin, encoding=options.encoding
133 if options.profile:
140 'self.parseStream(options, inStream)',
152 elif options.hotshot:
157 'self.parseStream(options, inStream)',
163 self.parseStream(options, inStream)
166 def setUp(self, options):
170 def parseStream(self, options, inStream):
174 def write(self, options, text):
175 if not options.no_output:
179 def writeln(self, options, text):
180 self.write(options, text + '\n')
190 def parseStream(self, options, inStream):
193 self.writeln(options, str(token))
221 def setUp(self, options):
222 lexerMod = __import__(options.lexerClass)
223 self.lexerClass = getattr(lexerMod, options.lexerClass)
226 def parseStream(self, options, inStream):
228 if options.port is not None:
229 kwargs['port'] = options.port
230 if options.debug_socket is not None:
236 result = getattr(parser, options.parserRule)()
239 self.writeln(options, result.tree.toStringTree())
241 self.writeln(options, repr(result))
283 def setUp(self, options):
284 lexerMod = __import__(options.lexerClass)
285 self.lexerClass = getattr(lexerMod, options.lexerClass)
286 parserMod = __import__(options.parserClass)
287 self.parserClass = getattr(parserMod, options.parserClass)
290 def parseStream(self, options, inStream):
294 result = getattr(parser, options.parserRule)()
300 result = getattr(walker, options.walkerRule)()
303 self.writeln(options, result.tree.toStringTree())
305 self.writeln(options, repr(result))