You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to extend the JTB ObjectDepthFirst class rather than DepthFirstVisitor in my parser code. Unfortunately, it appears ObjectDepthFirst is not generated in the .visitor subpackge alongside DepthFirstVisitor.
I'm not totally familiar with JavaCC, so not 100% sure of what the solution ought to look like. (E.g. has ObjectDepthFirst been totally deprecated in JTB, or is it just not generated by this plugin?)
If ObjectDepthFirst still exists in JTB, would it be possible to add an option to this Maven plugin to generate the ObjectDepthFirst class?
The text was updated successfully, but these errors were encountered:
chriskilding
changed the title
Option to generate ObjectDepthFirst in the visitor subpackage
[bug] ObjectDepthFirst implementation is not generated in the visitor subpackage
Sep 26, 2022
It looks like ObjectDepthFirst was replaced by GJDepthFirst in a JTB version update some time ago.
As a result, I am wondering if it would be possible to add a config option to jtb-javacc e.g. <jtbVersion> that lets the user override the JTB version?
(This option would allow the user to take JTB 'back in time' to a version that is compatible with the given codebase, i.e. one that contains ObjectDepthFirst.)
HI. I'm the developper of JTB since 1.4.0, may be 20 years ago. I never saw ObjectDepthFirst even in JTB 1.3.2...
However, generating a visitor or another, if not through a JTB option, is not the work of the maven plugin - and even less of JavaCC itself.
There is a JTB 1.5.1 version that allows to parameterize the generated visitors (https://github.com/jtb-javacc/JTB), but the maven plugin is not yet updated to this version.
I need to extend the JTB ObjectDepthFirst class rather than DepthFirstVisitor in my parser code. Unfortunately, it appears ObjectDepthFirst is not generated in the
.visitor
subpackge alongside DepthFirstVisitor.I'm not totally familiar with JavaCC, so not 100% sure of what the solution ought to look like. (E.g. has ObjectDepthFirst been totally deprecated in JTB, or is it just not generated by this plugin?)
If ObjectDepthFirst still exists in JTB, would it be possible to add an option to this Maven plugin to generate the ObjectDepthFirst class?
The text was updated successfully, but these errors were encountered: