You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
345 B
22 lines
345 B
4 months ago
|
import antlr3
|
||
|
import testbase
|
||
|
import unittest
|
||
|
|
||
|
|
||
|
class t029synpredgate(testbase.ANTLRTest):
|
||
|
def setUp(self):
|
||
|
self.compileGrammar()
|
||
|
|
||
|
|
||
|
def testValid1(self):
|
||
|
stream = antlr3.StringStream('ac')
|
||
|
lexer = self.getLexer(stream)
|
||
|
token = lexer.nextToken()
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
unittest.main()
|
||
|
|
||
|
|
||
|
|