forked from jasder/antlr
Merge pull request #2514 from carlodri/patch-1
DOCS: do not use python built-in as variable name
This commit is contained in:
commit
c7ee16fc72
|
@ -214,3 +214,4 @@ YYYY/MM/DD, github id, Full name, email
|
||||||
2018/12/23, youkaichao, Kaichao You, youkaichao@gmail.com
|
2018/12/23, youkaichao, Kaichao You, youkaichao@gmail.com
|
||||||
2019/02/06, ralucado, Cristina Raluca Vijulie, ralucris.v[at]gmail[dot]com
|
2019/02/06, ralucado, Cristina Raluca Vijulie, ralucris.v[at]gmail[dot]com
|
||||||
2019/03/13, base698, Justin Thomas, justin.thomas1@gmail.com
|
2019/03/13, base698, Justin Thomas, justin.thomas1@gmail.com
|
||||||
|
2019/03/18, carlodri, Carlo Dri, carlo.dri@gmail.com
|
||||||
|
|
|
@ -50,8 +50,8 @@ from MyGrammarLexer import MyGrammarLexer
|
||||||
from MyGrammarParser import MyGrammarParser
|
from MyGrammarParser import MyGrammarParser
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
input = FileStream(argv[1])
|
input_stream = FileStream(argv[1])
|
||||||
lexer = MyGrammarLexer(input)
|
lexer = MyGrammarLexer(input_stream)
|
||||||
stream = CommonTokenStream(lexer)
|
stream = CommonTokenStream(lexer)
|
||||||
parser = MyGrammarParser(stream)
|
parser = MyGrammarParser(stream)
|
||||||
tree = parser.startRule()
|
tree = parser.startRule()
|
||||||
|
|
Loading…
Reference in New Issue