aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/Python/tests/t045dfabug.py
blob: 76be15e291c3361af48eb8a6dee3c10d90210500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import unittest
import textwrap
import antlr3
import testbase

class T(testbase.ANTLRTest):

    def testbug(self):
        self.compileGrammar()
        
        cStream = antlr3.StringStream("public fooze")
        lexer = self.getLexer(cStream)
        tStream = antlr3.CommonTokenStream(lexer)
        parser = self.getParser(tStream)

        parser.r()


if __name__ == '__main__':
    unittest.main()