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
The current JavaCC-generated Velocity parser doesn't support error recovery support - the parser stops after it founds the first error. For the Velocity editor it would be helpful to find only the first error but all potential errors in a template.
By adding deep error recovery to the Velocity parser JavaCC grammar (as explained here) the Velocity editor could annotate more than only the first error. And the editors outline could rendered partially despite of parser errors.
For generating the Java sources from the JavaCC grammar we can leverage the javacc-maven-plugin. Because we're only interested in the generated Parser class we we use the maven-clean-pluginto delete all generated classes but the Parser one.
To keep us from side-effects due to overloading the original Parser class with our own modified version we're deleting the original Parser class from the Velocity jar file which is shipped with the core plugin.
The text was updated successfully, but these errors were encountered:
The javacc-maven-plugin is used to generated the Parser source code from the Velocity 1.7 JavaCC grammar file. From the generated code all but the Parser class is deleted with the maven-clean-plugin. The Velocity 1.7 jar file is replaced by a one which has no Parser class.
The current JavaCC-generated Velocity parser doesn't support error recovery support - the parser stops after it founds the first error. For the Velocity editor it would be helpful to find only the first error but all potential errors in a template.
By adding deep error recovery to the Velocity parser JavaCC grammar (as explained here) the Velocity editor could annotate more than only the first error. And the editors outline could rendered partially despite of parser errors.
For generating the Java sources from the JavaCC grammar we can leverage the
javacc-maven-plugin
. Because we're only interested in the generated Parser class we we use themaven-clean-plugin
to delete all generated classes but the Parser one.To keep us from side-effects due to overloading the original Parser class with our own modified version we're deleting the original Parser class from the Velocity jar file which is shipped with the core plugin.
The text was updated successfully, but these errors were encountered: