| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<!-- |
| 4 |
|
| 5 |
Copyright (c) 2006, Sun Microsystems, Inc. |
| 6 |
All rights reserved. |
| 7 |
|
| 8 |
Redistribution and use in source and binary forms, with or without |
| 9 |
modification, are permitted provided that the following conditions are met: |
| 10 |
|
| 11 |
* Redistributions of source code must retain the above copyright notice, |
| 12 |
this list of conditions and the following disclaimer. |
| 13 |
* Redistributions in binary form must reproduce the above copyright |
| 14 |
notice, this list of conditions and the following disclaimer in the |
| 15 |
documentation and/or other materials provided with the distribution. |
| 16 |
* Neither the name of the Sun Microsystems, Inc. nor the names of its |
| 17 |
contributors may be used to endorse or promote products derived from |
| 18 |
this software without specific prior written permission. |
| 19 |
|
| 20 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 21 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 22 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 23 |
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 24 |
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 25 |
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 26 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 27 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 28 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 29 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 30 |
THE POSSIBILITY OF SUCH DAMAGE. |
| 31 |
|
| 32 |
--> |
| 33 |
<head> |
| 34 |
<title>JavaCC Release Notes</title> |
| 35 |
<!-- Changed by: Michael Van De Vanter, 14-Jan-2003 --> |
| 36 |
</head> |
| 37 |
<body bgcolor="#FFFFFF" > |
| 38 |
|
| 39 |
<h1>JavaCC [tm]: Release Notes</h1> |
| 40 |
|
| 41 |
<pre> |
| 42 |
THIS FILE IS A COMPLETE LOG OF ALL CHANGES THAT HAVE TAKEN PLACE SINCE |
| 43 |
THE RELEASE OF VERSION 0.5 IN OCTOBER, 1996. |
| 44 |
|
| 45 |
AS NOTED HERE, DURING THE TRANSITION FROM 0.5 TO 4.0, THERE HAVE BEEN |
| 46 |
THE FOLLOWING INTERMEDIATE VERSIONS: |
| 47 |
|
| 48 |
0.6.-10 |
| 49 |
0.6.-9 |
| 50 |
0.6.-8 |
| 51 |
0.6(Beta1) |
| 52 |
0.6(Beta2) |
| 53 |
0.6 |
| 54 |
0.6.1 |
| 55 |
0.7pre1 |
| 56 |
0.7pre2 |
| 57 |
0.7pre3 |
| 58 |
0.7pre4 |
| 59 |
0.7pre5 |
| 60 |
0.7pre6 |
| 61 |
0.7pre7 |
| 62 |
0.7 |
| 63 |
0.7.1 |
| 64 |
0.8pre1 |
| 65 |
0.8pre2 |
| 66 |
1.0 |
| 67 |
1.2 |
| 68 |
2.0 |
| 69 |
2.1 |
| 70 |
3.0 |
| 71 |
3.1 |
| 72 |
3.2 |
| 73 |
4.0 |
| 74 |
4.1 |
| 75 |
4.2 |
| 76 |
|
| 77 |
|
| 78 |
------------------------------------------------------------------- |
| 79 |
******************************************************************* |
| 80 |
------------------------------------------------------------------- |
| 81 |
|
| 82 |
MODIFICATIONS IN VERSION 4.2 |
| 83 |
------------------------------------------------------------------- |
| 84 |
|
| 85 |
Release 4.2 is a maintenance release, incorporating a number of bug |
| 86 |
fixes and enhancements. For a complete list, please see the |
| 87 |
issue tracker: |
| 88 |
|
| 89 |
https://javacc.dev.java.net/issues/buglist.cgi?component=javacc&field0-0-0=target_milestone&type0-0-0=equals&value0-0-0=4.2 |
| 90 |
|
| 91 |
------------------------------------------------------------------- |
| 92 |
******************************************************************* |
| 93 |
------------------------------------------------------------------- |
| 94 |
|
| 95 |
MODIFICATIONS IN VERSION 4.1 |
| 96 |
------------------------------------------------------------------- |
| 97 |
|
| 98 |
Release 4.1 is a maintenance release, incorporating a number of bug |
| 99 |
fixes and enhancements. For a complete list, please see the |
| 100 |
issue tracker: |
| 101 |
|
| 102 |
https://javacc.dev.java.net/issues/buglist.cgi?component=javacc&field0-0-0=target_milestone&type0-0-0=equals&value0-0-0=4.1 |
| 103 |
|
| 104 |
------------------------------------------------------------------- |
| 105 |
******************************************************************* |
| 106 |
------------------------------------------------------------------- |
| 107 |
|
| 108 |
MODIFICATIONS IN VERSION 4.0 |
| 109 |
------------------------------------------------------------------- |
| 110 |
|
| 111 |
See the bug list in issue tracker for all the bugs fixed in this release. |
| 112 |
JJTree and JavaCC both now support 1.5 syntax. |
| 113 |
We now support accessing token fields in the grammar like: s=<ID>.image |
| 114 |
Convenient constructors for passing encoding directly to the grammar |
| 115 |
Tabsetting is now customizable. |
| 116 |
SimpleNode can now extend a class using the NODE_EXTENDS option. |
| 117 |
JAVACODE and BNF productions take optional access modifiers. |
| 118 |
|
| 119 |
------------------------------------------------------------------- |
| 120 |
******************************************************************* |
| 121 |
------------------------------------------------------------------- |
| 122 |
|
| 123 |
MODIFICATIONS IN VERSION 3.2 |
| 124 |
------------------------------------------------------------------- |
| 125 |
New regular expression kind with range operator where the upperbound is |
| 126 |
optional, meaning just minimum, no max - (<RE>){n,} |
| 127 |
Fix for issue 41 where it takes exponential time to minimumSize |
| 128 |
|
| 129 |
MODIFICATIONS IN VERSION 3.2 |
| 130 |
------------------------------------------------------------------- |
| 131 |
Added the LICENSE file to the installation root directory. |
| 132 |
Fixed issues #: 10, 11, 13, 2, 4, 5, 7 |
| 133 |
In particular, the generated code should now compile with JDK 1.5 (Tiger) |
| 134 |
|
| 135 |
------------------------------------------------------------------- |
| 136 |
******************************************************************* |
| 137 |
------------------------------------------------------------------- |
| 138 |
|
| 139 |
MODIFICATIONS IN VERSION 3.1 |
| 140 |
------------------------------------------------------------------- |
| 141 |
|
| 142 |
Open source with BSD license. |
| 143 |
Fixed the copyright text in the sourcefiles. |
| 144 |
|
| 145 |
------------------------------------------------------------------- |
| 146 |
******************************************************************* |
| 147 |
------------------------------------------------------------------- |
| 148 |
|
| 149 |
MODIFICATIONS IN VERSION 3.0 (as compared to version 2.1) |
| 150 |
------------------------------------------------------------------- |
| 151 |
|
| 152 |
No GUI version anymore. |
| 153 |
|
| 154 |
Fixed a bug in handling string literals when they intersect some |
| 155 |
regular expression. |
| 156 |
|
| 157 |
Split up initializations of jj_la1_* vars into smaller methods so |
| 158 |
that there is no code size issue. This is a recently reported bug. |
| 159 |
|
| 160 |
------------------------------------------------------------------- |
| 161 |
******************************************************************* |
| 162 |
------------------------------------------------------------------- |
| 163 |
|
| 164 |
MODIFICATIONS IN VERSION 2.1 (as compared to version 2.0) |
| 165 |
------------------------------------------------------------------- |
| 166 |
|
| 167 |
Added a new option - KEEP_LINE_COLUMN default true. |
| 168 |
|
| 169 |
If you set this option to false, the generated CharStream will not |
| 170 |
have any line/column tracking code. It will be your responsibility |
| 171 |
to do it some other way. This is needed for systems which don't care |
| 172 |
about giving error messages etc. |
| 173 |
|
| 174 |
------------------------------------------------------------------- |
| 175 |
|
| 176 |
API Changes: JavaCC no longer generates one of the 4 stream classes: |
| 177 |
|
| 178 |
ASCII_CharStream |
| 179 |
ASCII_UCodeESC_CharStream |
| 180 |
UCode_CharStream |
| 181 |
UCode_UCodeESC_CharStream |
| 182 |
|
| 183 |
In stead, it now supports two kinds of streams: |
| 184 |
|
| 185 |
SimpleCharStream |
| 186 |
JavaCharStream |
| 187 |
|
| 188 |
Both can be instantiated using a Reader object. |
| 189 |
|
| 190 |
SimpleCharStream just reads the characters from the Reader using the |
| 191 |
read(char[], int, int) method. So if you want to support a specific |
| 192 |
encoding - like SJIS etc., you will first create the Reader object |
| 193 |
with that encoding and instantiate the SimpleCharStream with that |
| 194 |
Reader so your encoding is automatically used. This should solve a |
| 195 |
whole bunch of issues with UCode* classes that were reported. |
| 196 |
|
| 197 |
JavaCharStream is pretty much like SimpleCharStream, but it also does |
| 198 |
\uxxxx processing as used by the Java programming language. |
| 199 |
|
| 200 |
Porting old grammars: |
| 201 |
|
| 202 |
Just replace Stream class names as follows - |
| 203 |
|
| 204 |
if you are using ASCII_CharStream or UCode_CharStream, |
| 205 |
change it to SimpleCharStream |
| 206 |
|
| 207 |
if you are using ASCII_UCodeESC_CharStream or UCode_UCodeESC_CharStream, |
| 208 |
change it to JavaCharStream |
| 209 |
|
| 210 |
The APIs remain the same. |
| 211 |
|
| 212 |
Also, the CharStream interface remains the same. So, if you have been using |
| 213 |
USER_CHAR_STREAM option, then you don't need to change anything. |
| 214 |
|
| 215 |
------------------------------------------------------------------- |
| 216 |
******************************************************************* |
| 217 |
------------------------------------------------------------------- |
| 218 |
|
| 219 |
MODIFICATIONS IN VERSION 2.0 (as compared to version 1.2) |
| 220 |
------------------------------------------------------------------- |
| 221 |
|
| 222 |
Added CPP grammar to examples directory (contributed by Malome Khomo). |
| 223 |
|
| 224 |
------------------------------------------------------------------- |
| 225 |
|
| 226 |
GUI is now available to run JavaCC. You can control all aspects of |
| 227 |
JJTree and JavaCC (except creating and editing the grammar file) |
| 228 |
through this GUI. |
| 229 |
|
| 230 |
------------------------------------------------------------------- |
| 231 |
|
| 232 |
Desktop icons now available on a variety of platforms so you can |
| 233 |
run JavaCC by double clicking the icon. |
| 234 |
|
| 235 |
------------------------------------------------------------------- |
| 236 |
|
| 237 |
Bash on NT support improved. |
| 238 |
|
| 239 |
------------------------------------------------------------------- |
| 240 |
|
| 241 |
Uninstaller included. |
| 242 |
|
| 243 |
------------------------------------------------------------------- |
| 244 |
|
| 245 |
Fixed some minor bugs. |
| 246 |
|
| 247 |
------------------------------------------------------------------- |
| 248 |
******************************************************************* |
| 249 |
------------------------------------------------------------------- |
| 250 |
|
| 251 |
MODIFICATIONS IN VERSION 1.2 (as compared to version 1.0) |
| 252 |
------------------------------------------------------------------- |
| 253 |
|
| 254 |
Moved JavaCC to the Metamata installer and made it available for |
| 255 |
download from Metamata's web site. |
| 256 |
|
| 257 |
------------------------------------------------------------------- |
| 258 |
|
| 259 |
Added Java 1.2 grammars to the examples directory. |
| 260 |
|
| 261 |
------------------------------------------------------------------- |
| 262 |
|
| 263 |
Added repetition range specifications for regular expressions. |
| 264 |
You can specify exact number of times a particular re should |
| 265 |
occur or a {man, max} range, e.g, |
| 266 |
|
| 267 |
TOKEN: |
| 268 |
{ |
| 269 |
< TLA: (["A"-"Z"]){3} > // Three letter acronyms! |
| 270 |
|
| 271 |
| |
| 272 |
|
| 273 |
< DOS_FILENAME: (~[".", ":", ";", "\\"]) {1,8} |
| 274 |
( "." (~[".", ":", ";", "\\"]){1,3})? > |
| 275 |
// An incomplete spec for the DOS file name format |
| 276 |
} |
| 277 |
|
| 278 |
The translation is right now expanding out these many number of times |
| 279 |
so use it with caution. |
| 280 |
|
| 281 |
------------------------------------------------------------------- |
| 282 |
|
| 283 |
You can now specify actions/state changes for EOF. It is right now |
| 284 |
very strict in that it has to look exactly like: |
| 285 |
|
| 286 |
<*> TOKEN: |
| 287 |
{ |
| 288 |
< EOF > { action } : NEW_STATE |
| 289 |
} |
| 290 |
|
| 291 |
which means that EOF is still EOF in every state except that now |
| 292 |
you can specify what state changes if any or what java code |
| 293 |
if any to execute on seeing EOF. |
| 294 |
|
| 295 |
This should help in writing grammars for processing C/C++ #include |
| 296 |
files, without going through hoops as in the old versions. |
| 297 |
|
| 298 |
------------------------------------------------------------------- |
| 299 |
******************************************************************* |
| 300 |
------------------------------------------------------------------- |
| 301 |
|
| 302 |
MODIFICATIONS IN VERSION 1.0 (as compared to version 0.8pre2) |
| 303 |
------------------------------------------------------------------- |
| 304 |
|
| 305 |
Fixed bugs related to usage of JavaCC with Java 2. |
| 306 |
|
| 307 |
------------------------------------------------------------------- |
| 308 |
|
| 309 |
Many other bug fixes. |
| 310 |
|
| 311 |
------------------------------------------------------------------- |
| 312 |
******************************************************************* |
| 313 |
------------------------------------------------------------------- |
| 314 |
|
| 315 |
MODIFICATIONS IN VERSION 0.8pre2 (as compared to version 0.8pre1) |
| 316 |
------------------------------------------------------------------- |
| 317 |
|
| 318 |
Mainly bug fixes. |
| 319 |
|
| 320 |
------------------------------------------------------------------- |
| 321 |
******************************************************************* |
| 322 |
------------------------------------------------------------------- |
| 323 |
|
| 324 |
MODIFICATIONS IN VERSION 0.8pre1 (as compared to version 0.7.1) |
| 325 |
------------------------------------------------------------------- |
| 326 |
|
| 327 |
Changed all references to Stream classes in the JavaCC code itself and |
| 328 |
changed them to Reader/Writer. |
| 329 |
|
| 330 |
------------------------------------------------------------------- |
| 331 |
|
| 332 |
Changed all the generated *CharStream classes to use Reader instead of |
| 333 |
InputStream. The names of the generated classes still say *CharStream. |
| 334 |
For compatibility reasons, the old constructors are still supported. |
| 335 |
All the constructors that take InputStream create InputStreamReader |
| 336 |
objects for reading the input data. All users parsing non-ASCII inputs |
| 337 |
should continue to use the InputStream constructors. |
| 338 |
|
| 339 |
------------------------------------------------------------------- |
| 340 |
|
| 341 |
Generate inner classes instead of top level classes where appropriate. |
| 342 |
|
| 343 |
------------------------------------------------------------------- |
| 344 |
******************************************************************* |
| 345 |
------------------------------------------------------------------- |
| 346 |
|
| 347 |
MODIFICATIONS IN VERSION 0.7.1 (as compared to version 0.7) |
| 348 |
------------------------------------------------------------------- |
| 349 |
|
| 350 |
Fixed a bug in the handling of empty PARSER_BEGIN...PARSER_END |
| 351 |
regions. |
| 352 |
|
| 353 |
------------------------------------------------------------------- |
| 354 |
|
| 355 |
Fixed a bug in Java1.1noLA.jj - the improved performance Java grammar. |
| 356 |
|
| 357 |
------------------------------------------------------------------- |
| 358 |
|
| 359 |
Fixed a spurious definition that was being generated into the parser |
| 360 |
when USER_TOKEN_MANAGER was set to true. |
| 361 |
|
| 362 |
------------------------------------------------------------------- |
| 363 |
******************************************************************* |
| 364 |
------------------------------------------------------------------- |
| 365 |
|
| 366 |
MODIFICATIONS IN VERSION 0.7 (as compared to version 0.7pre7) |
| 367 |
------------------------------------------------------------------- |
| 368 |
|
| 369 |
Fixed the error reporting routines to delete duplicate entries from |
| 370 |
the "expected" list. |
| 371 |
|
| 372 |
------------------------------------------------------------------- |
| 373 |
|
| 374 |
Generated braces around the "if (true) ..." construct inserted |
| 375 |
by JavaCC to prevent the dangling else problem. |
| 376 |
|
| 377 |
------------------------------------------------------------------- |
| 378 |
|
| 379 |
Added code to consume_token that performs garbage collections of |
| 380 |
tokens no longer necessary for error reporting purposes. |
| 381 |
|
| 382 |
------------------------------------------------------------------- |
| 383 |
|
| 384 |
Fixed a bug with OPTIMIZE_TOKEN_MANAGER when there is a common prefix |
| 385 |
for two or more (complex) regular expressions. |
| 386 |
|
| 387 |
------------------------------------------------------------------- |
| 388 |
|
| 389 |
Fixed a JJTree bug where a node annotation #P() caused a null pointer |
| 390 |
error. |
| 391 |
|
| 392 |
------------------------------------------------------------------- |
| 393 |
|
| 394 |
Only generate the jjtCreate() methods if the NODE_FACTORY option is |
| 395 |
set. |
| 396 |
|
| 397 |
------------------------------------------------------------------- |
| 398 |
|
| 399 |
Fixed a bug where the name of the JJTree state file was being used in |
| 400 |
the declaration of the field. |
| 401 |
|
| 402 |
------------------------------------------------------------------- |
| 403 |
|
| 404 |
Updated the performance page to demonstrate how JavaCC performance |
| 405 |
has improved since Version 0.5. |
| 406 |
|
| 407 |
------------------------------------------------------------------- |
| 408 |
******************************************************************* |
| 409 |
------------------------------------------------------------------- |
| 410 |
|
| 411 |
MODIFICATIONS IN VERSION 0.7pre7 (as compared to version 0.7pre6) |
| 412 |
------------------------------------------------------------------- |
| 413 |
|
| 414 |
Added an option CACHE_TOKENS with a default value of false. You |
| 415 |
can generate slightly faster and (it so happens) more compact |
| 416 |
parsers if you set CACHE_TOKENS to true. |
| 417 |
|
| 418 |
------------------------------------------------------------------- |
| 419 |
|
| 420 |
Improved time and space requirements as compared to earlier |
| 421 |
versions - regardless of the setting of CACHE_TOKENS. |
| 422 |
|
| 423 |
Performance has improved roughly 10% (maybe even a little more). |
| 424 |
Space requirements have reduced approximately 30%. |
| 425 |
|
| 426 |
It is now possible to generate a Java parser whose class file is |
| 427 |
only 28K in size. To do this, run JavaCC on Java1.1noLA.jj with |
| 428 |
options ERROR_REPORTING=false and CACHE_TOKENS=true. |
| 429 |
|
| 430 |
And over the next few months, there is still places where space |
| 431 |
and time can be trimmed! |
| 432 |
|
| 433 |
------------------------------------------------------------------- |
| 434 |
|
| 435 |
The token_mask arrays are completely gone and replaced by bit |
| 436 |
vectors. |
| 437 |
|
| 438 |
------------------------------------------------------------------- |
| 439 |
|
| 440 |
Nested switch statements have been flattened. |
| 441 |
|
| 442 |
------------------------------------------------------------------- |
| 443 |
|
| 444 |
Fixed a bug in the outputting of code to generate a method |
| 445 |
|
| 446 |
jjCheckNAddStates(int i) |
| 447 |
|
| 448 |
calls to which are generated, but not the method. |
| 449 |
|
| 450 |
------------------------------------------------------------------- |
| 451 |
|
| 452 |
Generating the `static' keyword for the backup method of the |
| 453 |
UCode*.java files when STATIC flag is set. |
| 454 |
|
| 455 |
------------------------------------------------------------------- |
| 456 |
******************************************************************* |
| 457 |
------------------------------------------------------------------- |
| 458 |
|
| 459 |
MODIFICATIONS IN VERSION 0.7pre6 (as compared to version 0.7pre5) |
| 460 |
------------------------------------------------------------------- |
| 461 |
|
| 462 |
Extended the generated CharStream classes with a method to adjust the |
| 463 |
line and column numbers for the beginning of a token. Look at the C++ |
| 464 |
grammar in the distribution to see an example usage. |
| 465 |
|
| 466 |
------------------------------------------------------------------- |
| 467 |
|
| 468 |
Fixed the JavaCC front-end so that error messages are given with line |
| 469 |
numbers relative to the original .jjt file if the .jj file is generated |
| 470 |
by pre-processing using jjtree. |
| 471 |
|
| 472 |
------------------------------------------------------------------- |
| 473 |
|
| 474 |
Removed support for old deprecated features: |
| 475 |
|
| 476 |
. IGNORE_IN_BNF can no longer be used. Until this version, you |
| 477 |
would get a deprecated warning message if you did use it. |
| 478 |
|
| 479 |
. The extra {} in TOKEN specifications can no longer be used. Until |
| 480 |
this version, you would get a deprecated warning message if your |
| 481 |
did use it. |
| 482 |
|
| 483 |
------------------------------------------------------------------- |
| 484 |
|
| 485 |
ParseError is no longer supported. It is now ParseException. Please |
| 486 |
delete the existing generated files for ParseError and ParseException. |
| 487 |
The right ParseException will automatically get regenerated. |
| 488 |
|
| 489 |
------------------------------------------------------------------- |
| 490 |
|
| 491 |
Completed step 1 in getting rid of the token mask arrays. This |
| 492 |
occupies space and is also somewhat inefficient. Essentially, |
| 493 |
replaced all "if" statements that test a token mask entry with |
| 494 |
faster "switch" statements. The token mask array still exist for |
| 495 |
error reporting - but they will be removed in the next step (in |
| 496 |
the next release). As a result, we have noticed improved parser |
| 497 |
speeds (up to 10% for the Java grammar). |
| 498 |
|
| 499 |
As a consequence of doing step 1, but not step 2, the size of the |
| 500 |
generated parser has increased a small amount. When step 2 is |
| 501 |
completed, the size of the generated parser will go down to be even |
| 502 |
smaller than what it was before. |
| 503 |
|
| 504 |
------------------------------------------------------------------- |
| 505 |
|
| 506 |
Cache tokens one step ahead during parsing for performance reasons. |
| 507 |
|
| 508 |
------------------------------------------------------------------- |
| 509 |
|
| 510 |
Made the static token mask fields "final". Note that the token |
| 511 |
mask arrays will go away in the next release. |
| 512 |
|
| 513 |
------------------------------------------------------------------- |
| 514 |
|
| 515 |
The Java 1.1 grammar was corrected to allow interfaces nested within |
| 516 |
blocks. The JavaCC grammar was corrected to fix a bug in its |
| 517 |
handling of the ">>>=" operator. |
| 518 |
|
| 519 |
------------------------------------------------------------------- |
| 520 |
|
| 521 |
Fixed a bug in the optimizations of the lexical analyzer. |
| 522 |
|
| 523 |
------------------------------------------------------------------- |
| 524 |
|
| 525 |
Many changes have been made to JJTree. See the JJTree release |
| 526 |
notes for more information. |
| 527 |
|
| 528 |
------------------------------------------------------------------- |
| 529 |
******************************************************************* |
| 530 |
------------------------------------------------------------------- |
| 531 |
|
| 532 |
MODIFICATIONS IN VERSION 0.7pre5 (as compared to version 0.7pre4) |
| 533 |
------------------------------------------------------------------- |
| 534 |
|
| 535 |
Fixed a bug with TOKEN_MGR_DECLS introduced in 0.7pre4. |
| 536 |
|
| 537 |
------------------------------------------------------------------- |
| 538 |
|
| 539 |
Enhanced JavaCC input grammar to allow JavaCC reserved words in |
| 540 |
Java code (such as actions). This too was disallowed in 0.7pre4 |
| 541 |
only and has been rectified. |
| 542 |
|
| 543 |
------------------------------------------------------------------- |
| 544 |
|
| 545 |
The JavaCC+JJTree grammar is now being offered to our users. You |
| 546 |
can find it in the examples directory. |
| 547 |
|
| 548 |
------------------------------------------------------------------- |
| 549 |
|
| 550 |
Fixed an array index out of bounds bug in the parser - that sometimes |
| 551 |
can happen when a non-terminal can expand to more than 100 other |
| 552 |
non-terminals. |
| 553 |
|
| 554 |
------------------------------------------------------------------- |
| 555 |
|
| 556 |
Fixed a bug in generating parsers with USER_CHAR_STREAM set to true. |
| 557 |
|
| 558 |
------------------------------------------------------------------- |
| 559 |
|
| 560 |
Created an alternate Java 1.1 grammar in which lookaheads have been |
| 561 |
modified to minimize the space requirements of the generated |
| 562 |
parser. See the JavaGrammars directory under the examples directory. |
| 563 |
|
| 564 |
------------------------------------------------------------------- |
| 565 |
|
| 566 |
Provided instructions on how you can make your own grammars space |
| 567 |
efficient (until JavaCC is improved to do this). See the |
| 568 |
JavaGrammars directory under the examples directory. |
| 569 |
|
| 570 |
------------------------------------------------------------------- |
| 571 |
|
| 572 |
Updated all examples to make them current. Some examples had become |
| 573 |
out of date due to newer versions of JavaCC. |
| 574 |
|
| 575 |
------------------------------------------------------------------- |
| 576 |
|
| 577 |
Updated the VHDL example - Chris Grimm made a fresh contribution. |
| 578 |
This seems to be a real product quality example now. |
| 579 |
|
| 580 |
------------------------------------------------------------------- |
| 581 |
|
| 582 |
Fixed bugs in the Obfuscator example that has started being used |
| 583 |
for real obfuscation by some users. |
| 584 |
|
| 585 |
------------------------------------------------------------------- |
| 586 |
|
| 587 |
The token manager class is non-final (this was a bug). |
| 588 |
|
| 589 |
------------------------------------------------------------------- |
| 590 |
|
| 591 |
Many changes have been made to JJTree. See the JJTree release |
| 592 |
notes for more information. |
| 593 |
|
| 594 |
------------------------------------------------------------------- |
| 595 |
|
| 596 |
Fixed all token manager optimization bugs that we know about. |
| 597 |
|
| 598 |
------------------------------------------------------------------- |
| 599 |
|
| 600 |
Fixed all UNICODE lexing bugs that we know about. |
| 601 |
|
| 602 |
------------------------------------------------------------------- |
| 603 |
|
| 604 |
Fixed an array index out of bounds bug in the token manager. |
| 605 |
|
| 606 |
------------------------------------------------------------------- |
| 607 |
******************************************************************* |
| 608 |
------------------------------------------------------------------- |
| 609 |
|
| 610 |
MODIFICATIONS IN VERSION 0.7pre4 (as compared to version 0.7pre3) |
| 611 |
------------------------------------------------------------------- |
| 612 |
|
| 613 |
The only significant change for this version is that we incorporated |
| 614 |
the Java grammar into the JavaCC grammar. The JavaCC front end is |
| 615 |
therefore able to parse the entire grammar file intelligently rather |
| 616 |
than simple ignore the actions. |
| 617 |
|
| 618 |
------------------------------------------------------------------- |
| 619 |
******************************************************************* |
| 620 |
------------------------------------------------------------------- |
| 621 |
|
| 622 |
MODIFICATIONS IN VERSION 0.7pre3 (as compared to version 0.7pre2) |
| 623 |
------------------------------------------------------------------- |
| 624 |
|
| 625 |
WE HAVE NOT ADDED ANY MAJOR FEATURES TO JAVACC FOR THIS PRERELEASE. |
| 626 |
WE'VE FOCUSED MAINLY ON BUG FIXES. BUT HERE IS WHAT HAS CHANGED: |
| 627 |
|
| 628 |
------------------------------------------------------------------- |
| 629 |
|
| 630 |
Fixed the JavaCC license agreement to allow redistributions of example |
| 631 |
grammars. |
| 632 |
|
| 633 |
------------------------------------------------------------------- |
| 634 |
|
| 635 |
Fixed a couple of bugs in the JavaCC grammar. |
| 636 |
|
| 637 |
------------------------------------------------------------------- |
| 638 |
|
| 639 |
Fixed an obscure bug that caused spurious '\r's to be generated |
| 640 |
on Windows machines. |
| 641 |
|
| 642 |
------------------------------------------------------------------- |
| 643 |
|
| 644 |
Changed the generated *CharStream classes to take advantage of the |
| 645 |
STATIC flag setting. With this (like the token manager and parser) |
| 646 |
the *CharStream class also will have all the methods and variables to |
| 647 |
be static with STATIC flag. |
| 648 |
|
| 649 |
------------------------------------------------------------------- |
| 650 |
|
| 651 |
A new option OPTIMIZE_TOKEN_MANAGER is introduced. It defaults to |
| 652 |
true. When this option is set, optimizations for the TokenManager, in |
| 653 |
terms of size *and* time are performed. |
| 654 |
|
| 655 |
This option is automatically set to false if DEBUG_TOKEN_MANAGER is |
| 656 |
set to true. |
| 657 |
|
| 658 |
The new option OPTIMIZE_TOKEN_MANAGER might do some unsafe |
| 659 |
optimization that can cause your token manager not to compile or run |
| 660 |
properly. While we don't expect this to happen that much, in case it |
| 661 |
happens, just turn off the option so that those optimizations will not |
| 662 |
happen and you can continue working. Also, if this happens, please |
| 663 |
send us the grammar so we can analyze the problem and fix JavaCC. |
| 664 |
|
| 665 |
------------------------------------------------------------------- |
| 666 |
|
| 667 |
A String-valued option OUTPUT_DIRECTORY is implemented. This can be |
| 668 |
used to instruct JavaCC to generate all the code files in a particular |
| 669 |
directory. By default, this is set to user.dir. |
| 670 |
|
| 671 |
------------------------------------------------------------------- |
| 672 |
|
| 673 |
Fixed a minor bug (in 0.7pre2) in that the specialToken field was not |
| 674 |
being set before a lexical action for a TOKEN type reg. exp. |
| 675 |
|
| 676 |
------------------------------------------------------------------- |
| 677 |
|
| 678 |
Added a toString method to the Token class to return the image. |
| 679 |
|
| 680 |
|
| 681 |
------------------------------------------------------------------- |
| 682 |
******************************************************************* |
| 683 |
------------------------------------------------------------------- |
| 684 |
|
| 685 |
MODIFICATIONS IN VERSION 0.7pre2 (as compared to version 0.7pre1) |
| 686 |
|
| 687 |
------------------------------------------------------------------- |
| 688 |
|
| 689 |
AS USUAL, KEEP IN MIND THAT THIS IS A PRERELEASE THAT WE HAVE NOT |
| 690 |
TESTED EXTENSIVELY. THERE ARE A FEW KNOWN BUGS THAT ARE STILL PRESENT |
| 691 |
IN THIS VERSION. QUALITY CONTROL FOR PRERELEASES ARE SIGNIFICANTLY |
| 692 |
LOWER THAN STABLE RELEASES - I.E., WE DON'T MIND THE PRESENCE OF BUGS |
| 693 |
THAT WE WOULD FEEL EMBARRASSED ABOUT IN STABLE RELEASES. |
| 694 |
|
| 695 |
------------------------------------------------------------------- |
| 696 |
|
| 697 |
Main feature release for 0.7pre2 is a completely redone JJTree. It |
| 698 |
now bootstraps itself. See the JJTree release notes for more |
| 699 |
information. |
| 700 |
|
| 701 |
------------------------------------------------------------------- |
| 702 |
|
| 703 |
Error recovery constructs have been modified a bit from 0.7pre1. The |
| 704 |
parser methods now throw only ParseException by default. You can now |
| 705 |
specify a "throws" clause with your non-terminals to add other |
| 706 |
exceptions to this list explicitly. Please see the help web page at: |
| 707 |
|
| 708 |
http://www.suntest.com/JavaCCBeta/newerrorhandling.html |
| 709 |
|
| 710 |
for complete information on error recovery. |
| 711 |
|
| 712 |
------------------------------------------------------------------- |
| 713 |
|
| 714 |
A new Java grammar improved for performance in the presence of very |
| 715 |
complex expressions is now included. This is NewJava1.1.jj. |
| 716 |
|
| 717 |
------------------------------------------------------------------- |
| 718 |
|
| 719 |
More optimizations for the size of the token manager's java and class |
| 720 |
files. The generated .java files are about 10-15% smaller that |
| 721 |
0.7pre1 (and 40-45%) smaller compared to 0.6. The class files (with |
| 722 |
-O) are about 20% smaller compared to 0.6. |
| 723 |
|
| 724 |
------------------------------------------------------------------- |
| 725 |
|
| 726 |
The parser size has been decreased. The current optimizations affect |
| 727 |
grammars that have small amounts of non-1 lookaheads. For example the |
| 728 |
generated code for the Java grammar has now reduced by 10%. |
| 729 |
|
| 730 |
------------------------------------------------------------------- |
| 731 |
|
| 732 |
Extended the Token class to introduce a new factory function that |
| 733 |
takes the token kind and returns a new Token object. This is done to |
| 734 |
facilitate creating Objects of subclasses of Token based on the kind. |
| 735 |
Look at the generated file Token.java for more details. |
| 736 |
|
| 737 |
------------------------------------------------------------------- |
| 738 |
|
| 739 |
The restriction on the input size (to be < 2 gbytes) for the token |
| 740 |
manager is gone. Now the lexer can tokenize any size input (no |
| 741 |
limit). |
| 742 |
|
| 743 |
------------------------------------------------------------------- |
| 744 |
|
| 745 |
Removed all the references to System.out.println in the *CharStream |
| 746 |
classes. Now all these are thrown as Error objects. |
| 747 |
|
| 748 |
------------------------------------------------------------------- |
| 749 |
|
| 750 |
Fixed a very old problem with giving input from System.in. Previously |
| 751 |
for the EOF, you needed to give or |
| 752 |
</pre> |
| 753 |
</body> |
| 754 |
</html> |