Skip to content

Commit

Permalink
jflex-1.7.0-SNAPSHOT.jar: morph ZZ_CMAP to multi-level table
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsh committed May 27, 2016
1 parent a6f2025 commit c1fdf11
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
CharSequence zzBufferL = zzBuffer;
char [] zzCMapL = ZZ_CMAP;

--- local declarations

Expand Down
4 changes: 3 additions & 1 deletion tools/lexer/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ https://github.com/jflex-de/jflex/tree/de2312d6891de7fdf2752ad8e0a45983202ad5e0
"Return exit code 0 for --{help,version,info}" committed on Feb 29 by lsf37

1. Emitter.java: zzBufferL is treated as CharSequence instead of char[]
2. Emitter.java: try using reduced ZZ_CMAP if maxCodePoint is greater than 0xffff
2. Emitter.java: reworked ZZ_CMAP to an optimized multi-level table (see java.lang.CharacterDataXX)
For this purpose EmitterCM.java is introduced to resemble a variant of
generatecharacter/GenerateCharacter.java from http://hg.openjdk.java.net tailored to our needs.
1 change: 0 additions & 1 deletion tools/lexer/idea-flex.skeleton
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
CharSequence zzBufferL = zzBuffer;
char [] zzCMapL = ZZ_CMAP;

--- local declarations

Expand Down
Binary file modified tools/lexer/jflex-1.7.0-SNAPSHOT.jar
Binary file not shown.

0 comments on commit c1fdf11

Please sign in to comment.