Can't import module ANTLR MyGrammarLexer and MyGrammarParser
问题 I'm trying to start with ANTLR . When I import module antlr it's working just fine , but if I try to import MyGrammarLexer and MyGrammarParser , it's shows that MyGrammarLexer and Parser aren't in lib. I Using PyCharm , I installed ANTLR with : pip3 install antlr4-python3-runtime my code is : import sys from antlr4 import * import MyGrammarLexer import MyGrammarParser def main(argv): input = FileStream(argv[1]) lexer = MyGrammarLexer(input) stream = CommonTokenStream(lexer) parser =