antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
17.16k stars 3.28k forks source link

Python reserved keyword #2871

Open varunajmera0 opened 4 years ago

varunajmera0 commented 4 years ago

I have SQL grammar. antlr4 -Dlanguage=Python3 -visitor SqlBase.g4 first, It gives waring image

error in parser SqlBaseParser.py", l ine 1722 self.from = None # QualifiedNameContext ^ SyntaxError: invalid syntax

ericvergnaud commented 4 years ago

Hi,

please close this and move it to the google discussion group

Eric

Le 2 août 2020 à 18:29, AV notifications@github.com a écrit :

I have SQL grammar. antlr4 -Dlanguage=Python3 -visitor SqlBase.g4 first, It gives waring https://user-images.githubusercontent.com/22893376/89121043-08de4e80-d4d9-11ea-92ed-c5b322f6921b.png error in parser SqlBaseParser.py", l ine 1722 self.from = None # QualifiedNameContext ^ SyntaxError: invalid syntax

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4/issues/2871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNQJAHDTDJM2EC76UU5V3R6U5Y3ANCNFSM4PSPJCRQ.