I'm new to antlr4 and I was trying to create the Postgres parser for which I was using the grammar files and. I followed the below steps. Please note all the files are used from master branch: https://github.com/antlr/grammars-v4/tree/613f1ab0ae39fcb69b7775811a4591dd9886cb10/sql/postgresql/Java
- copied the grammer files .g4 files in to folder "src/main/antlr4/com/rr/sqlparser/grammar".
- copied the LexerDispatchingErrorListener.java, ParserDispatchingErrorListener.java, PostgreSQLLexerBase.java, PostgreSQLParserBase.java in the package "src/main/java/com/rr/sqlparser/grammar"
- executed the command 'mvn clean compile' and the compiled happened successfully.
- marked the "target/generated-sources/antlr4" as resources root and generated sources root and also it was added as the sources in Project module.
- After the above steps are done I'm still getting the error in imy IntelliJ in my PostgreSQLParserBase.java that Cannot resolve symbol 'PostgreSQLParser'. Is this because of the larger size of PostgreSQLparser.java as mentioned by one of the contributor in the comments ?
Please help or guide me as in what's the step that I'm missing or is this a issue in code files ?




