Skip to content

update antlr4 parser for pg #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged

Conversation

AOSTL
Copy link
Collaborator

@AOSTL AOSTL commented Jun 7, 2025

Fix #7 by update pg parser.

@AOSTL AOSTL marked this pull request as ready for review June 7, 2025 12:01
@AOSTL
Copy link
Collaborator Author

AOSTL commented Jun 11, 2025

To generate pg parser, download latest grammar rules from Antlr4 grammar repository then run java -jar antlr-4.13.2-complete.jar -Dlanguage=Python3 *.g4. Make sure to execute python transformGrammar.py to alter the .g4 files. Download PostgreSQLLexerBase.py and PostgreSQLParserBase.py to ensure the parser functions well.

I'm pretty sure it solves the problem mentioned in #7 and #22 .

@code4DB code4DB merged commit f80b51d into weAIDB:pypi/0.0.0-alpha Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strictly bug
2 participants