jdt-core-home/howto/generate parser/generateParser.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4, Tue Oct 14 16:49:23 2003 UTC revision 1.5, Thu Oct 13 21:06:18 2005 UTC
# Line 17  Line 17 
17          <td ALIGN=RIGHT VALIGN=TOP WIDTH="2%"><img SRC="http://dev.eclipse.org/images/Adarrow.gif" NOSAVE BORDER=0 height=16 width=16></td>          <td ALIGN=RIGHT VALIGN=TOP WIDTH="2%"><img SRC="http://dev.eclipse.org/images/Adarrow.gif" NOSAVE BORDER=0 height=16 width=16></td>
18          <td WIDTH="98%"><b>Where to get the parser generator</b><br>          <td WIDTH="98%"><b>Where to get the parser generator</b><br>
19          <blockquote>The parser files and resources are automatically generated using the LPG parser generator. This tools has          <blockquote>The parser files and resources are automatically generated using the LPG parser generator. This tools has
20          been renamed Jikes Parser generator. You can find more information and latest releases at this <A HREF="http://www-124.ibm.com/developerworks/projects/jikes/">link</A>.          been renamed Jikes Parser generator. You can find more information and latest releases at this <A HREF="http://sourceforge.net/project/showfiles.php?group_id=128803&package_id=144579">link</A>.
21          The latest tool is provided in source format. We don't provide any help for compiling these          The latest tool is provided in source format. We don't provide any help for compiling these
22          source files. Refer to the link above if you have trouble to get binaries.          source files. Refer to the link above if you have trouble to get binaries.
23          <br>Our grammar is generated using the version 2.30 of LPG. If newer versions fail to generate resources from our      <br>Our grammar is generated using the version 1.3 of LPG. If newer versions fail to generate resources from our
24          grammar, please send request to the Jikes Parser Generator team.          grammar, please send request to the Jikes Parser Generator team.
25          </blockquote>          </blockquote>
26          </p>          </p>
# Line 150  Line 150 
150   </tr>   </tr>
151   <tr>   <tr>
152  <th VALIGN=top align=left>javasym.java</th>  <th VALIGN=top align=left>javasym.java</th>
153   <td>This is the contents of the class org.eclipse.jdt.core.compiler.TerminalTokens. You need to replace:<br>   <td>This is the contents of the class org.eclipse.jdt.core.compiler.TerminalTokens.</td>
  <ul>  
  <li>TokenName$eof with TokenNameEOF</li>  
  <li>TokenName$error with TokenNameERROR</li>  
  </ul></td>  
154   </tr>   </tr>
155   <tr>   <tr>
156  <th VALIGN=top align=left>javadef.java</th>  <th VALIGN=top align=left>javadef.java</th>
# Line 173  Line 169 
169   </li>   </li>
170   <li>The class <font color="#3366FF">org.eclipse.jdt.internal.compiler.parser.ParserBasicInformation</font> needs to be updated with the content of the file <font color="#3366FF">javadef.java</font>. Don't copy the   <li>The class <font color="#3366FF">org.eclipse.jdt.internal.compiler.parser.ParserBasicInformation</font> needs to be updated with the content of the file <font color="#3366FF">javadef.java</font>. Don't copy the
171   interface name. Simply copy the field declarations. The actual source of this class will guide you.</li>   interface name. Simply copy the field declarations. The actual source of this class will guide you.</li>
  <li>This is the contents of the class org.eclipse.jdt.internal.compiler.parser.TerminalTokens. You need to replace:<br>  
  <ul>  
  <li><font color="#3366FF">TokenName$eof</font> with <font color="#3366FF">TokenNameEOF</font></li>  
  <li><font color="#3366FF">TokenName$error</font> with <font color="#3366FF">TokenNameERROR</font></li>  
  </ul>  
  </li>  
172   <li>The last step is to update the resource files:<br>   <li>The last step is to update the resource files:<br>
173   Copy the jdtcore.jar file in d:\temp. Compile this <A HREF="UpdateParserFiles.java">source</A> inside d:\temp. You will have a file UpdateParserFiles.class.   Copy the jdtcore.jar file in d:\temp. Compile this <A HREF="UpdateParserFiles.java">source</A> inside d:\temp. You will have a file UpdateParserFiles.class.
174   Then run the following command-line:   Then run the following command-line:

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5