Don't edit JavaCC output files
Status: Inactive
Brought to you by:
dkionka
The build process should run JavaCC if necessary to
create the .java files from LinesParser.jj and the
resulting Java files shouldn't be edited unless
absolutely necessary.
The current practice of directly editing
LinesParser.java makes it impossible to regenerate if
LinesParser.jj changes. There is at least one bug fix
and several enhancements which will require editing the
LinesParser.jj.
Logged In: YES
user_id=325184
Can you explain what JavaCC is and where I can get it?
Logged In: YES
user_id=788730
This is partially fixed. LinesParser.jj has been updated to
incorporate changes to the hand edited .java files and work
has begun to run JavaCC as part of the build process. This
can be closed when that work is complete.
JavaCC is a "compiler compiler" currently available from
https://javacc.dev.java.net/ The current version is 3.2
(vs. the pre-1.0 version that was used to generate the .java
files in CVS)
Logged In: YES
user_id=788730
Although I added this to the Ant build prototype, it should
still be fixed even if the team stays with the current make
based build procedure.
The following files should be deleted from CVS and generated
at build time from LinesParser.jj using JavaCC:
LinesParser.java
LinesParserConstants.java
LinesParserTokenManager.java
SimpleCharStream.java (or JavaCharStream.java)
Token.java
TokenMgrError.Java
The first three will change any time LinesParser.jj changes.
The last three are constant for all parsers generated by a
given version of JavaCC.
I've assigned this to dkionka since I don't deal with the
build process.