Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.4k
How can I know the exact meaning of a AST node.#2004
-
I'm developing a custom SQL processor using the visitor pattern. |
BetaWas this translation helpful?Give feedback.
All reactions
I am sorry to tell you that exactly this kind of documentation is missing, because nobody has the time and resources to write it.
Of course you are most welcome to submit PRs with JavaDoc when you are on this job now.
Btw, IntelliJ has an excellent JavaCC plugin which makes it easy to find the production for each AST class.
Also, you could parse the grammar with javaCC itself to get the BNF of each production and last but not leasthttps://manticore-projects.com/JSQLParser/syntax_snapshot.html will show you the Grammar and has a searchable side bar.
Example forAllTableColumns:https://manticore-projects.com/JSQLParser/syntax_snapshot.html#alltablecolumns
Replies: 2 comments 4 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Greetings. I understand what you mean, this kind of documentation is missing:
A strong volunteer would need to write that as Java-Doc into each AST class. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thanks, but I can't use The situation is, I need to process all kinds of nodes extended by Now I have a method which is searching for the class name in |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I am sorry to tell you that exactly this kind of documentation is missing, because nobody has the time and resources to write it. Btw, IntelliJ has an excellent JavaCC plugin which makes it easy to find the production for each AST class. Example for |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you, I wasn't expecting a documentation-based answer. The Syntax Snapshot is very useful. 😀 |
BetaWas this translation helpful?Give feedback.
All reactions
-
You are welcome and I am glad to be of assistance. If anything else comes up, please don't hesitate to ask. Cheers! |
BetaWas this translation helpful?Give feedback.
All reactions
-
Additionally you can useJSQLFormatter online to get this kind of AST illustration: |
BetaWas this translation helpful?Give feedback.