PageRenderTime 62ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/projects/javacc-5.0/www/doc/javaccreleasenotes.html

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