Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is needed to make parser generation work on Windows now that we added Unicode characters, since JavaCC 5.0 added the
-GRAMMAR_ENCODING
command line flag. This takes us from a version of JavaCC released in 2006 to one released in 2009.All the text files in this PR are auto-generated except for
customBuild.xml
,tla+.jj
, andParseExceptionExtended.java
.There were some minor changes needed in response to breaking changes in the generated parser code:
lookingAhead
; this does not change how the parser functions, as ensured by the parser test corpusspecialConstructor
inParseExceptionExtended.java
, mirroring change in the generated code of its parent classI also took the opportunity to remove three isolated tab characters in the
tla+.jj
file, so it now only uses spaces for indentation.One of the weirder changes in the generated parser file is that
"\n"
is now emitted as"\u005cn"
. I have tested in a simple hello world java project and confirmed they function identically.