Fork of JavaCC 7.0.3 because the original code base has poor quality and PRs are not really merged. The overall goal is to maintain compatibility to JavaCC but
- The code itself should be better maintainable
- The code itself should conform to best-practices
- Because this is NOT JavaCC the class names are similar, but the base package name changed from
net.javacctocom.helger.pgcc
See https://github.com/phax/ph-javacc-maven-plugin/ for a Maven plugin that uses this CC.
- v1.1.1 - 2019-01-28
- Fixed an error in Java modern template
SimpleCharStream- thanks to @nbauma109
- Fixed an error in Java modern template
- v1.1.0 - 2018-10-25
- Focus is on improving the quality and consistency of the template files - this may cause interoperability problem because names change etc.
- This version assumes that the created code uses at least Java 1.5 - JDK versions below 1.5 are no longer supported!
- The option
STATICwas removed - it caused too many variations in the templates which decreases maintainability. STATIC is now alwaysfalse! - Added new option
OUTPUT_ENCODINGto define the character set for the output files - If JDK version is at least 1.6 than
java.nio.Charset encodingis used and notString encodingin generated Streams. - The Java templates were modified so that the interface methods start with a lowercase character (
beginTokeninstead ofBeginToken) - the created code may need to be adopted! - A masking issue for
'and\characters was resolved (issue #20)
- v1.0.2 - 2018-01-08
- Fixed an error in jump-patching that was originally only considered if legacy exception handling was enabled - now ParserGeneratorCC can create itself using itself!
- v1.0.1 - 2018-01-05
- Initial release with expected output compatibility to JavaCC 7.0.3
- The JavaCC option
GENERATE_STRING_BUILDERwas removed - it was never evaluated - The JavaCC option
LEGACY_EXCEPTION_HANDLINGwas removed - that was too much 1990 ;) - see issue #7. This implies that the classTokenMgrErroris no longer available! - The JavaCC option
GENERATE_CHAINED_EXCEPTIONwas replaced with deduction from the Java version (≥ 1.4) - The JavaCC option
GENERATE_GENERICSwas replaced with deduction from the Java version (≥ 1.5) - The JavaCC option
GENERATE_ANNOTATIONSwas replaced with deduction from the Java version (≥ 1.5) - The main applications previously located in the root packaged were moved to package
com.helger.pgcc.main - Minor improvements for Java output if JDK level is ≥ 1.7
- https://github.com/phax/ph-javacc-maven-plugin/ starting from v4 will use this package instead of JavaCC.
- No pure
RuntimeExceptionorErrorclasses are thrown inside the code
- v1.0.0 - 2018-01-05 - had a regression and was therefore never released binary
Add the following to your pom.xml to use this artifact:
<dependency>
<groupId>com.helger</groupId>
<artifactId>parser-generator-cc</artifactId>
<version>1.1.1</version>
</dependency>
My personal Coding Styleguide | On Twitter: @philiphelger