1 import unittest 2 import textwrap 3 import antlr3 4 import testbase 5 6 class T(testbase.ANTLRTest): 7 8 def testbug(self): 9 self.compileGrammar() 10 11 cStream = antlr3.StringStream("public fooze") 12 lexer = self.getLexer(cStream) 13 tStream = antlr3.CommonTokenStream(lexer) 14 parser = self.getParser(tStream) 15 16 parser.r() 17 18 19 if __name__ == '__main__': 20 unittest.main() 21 22