-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Problem with build Parser file #4722
Comments
The base class for the lexer is declared to be PostgreSQLLexerBase and the base class for the parser is declared to be PostgreSQLParserBase. These are hand-written files, not generated. The grammar does not work for Python3 because these files have not been implemented. So, there is no Python3 target for the sql/postgresql grammar. In addition, it is not listed in the desc.xml, which tells you what exactly is tested. The Python3 port probably won't be implemented anytime soon because the grammar is ambiguous. (See antlr/grammars-v4#4276 and ambig.txt.) Generally speaking, Python3 does not work well with ambiguous grammars. The CSharp target works fine.
The Java target also works fine.
|
I try to build
But I get
without PostgreSQLParserBase in folder
If I build for c#, I see useless parser file.
In g4 file there is https://github.com/antlr/grammars-v4/blob/master/sql/postgresql/PostgreSQLParser.g4
java version: 21.0.3 2024-04-16 LTS
The text was updated successfully, but these errors were encountered: