View | Details | Raw Unified | Return to bug 52840
Collapse All | Expand All

(-)howto/generate parser/generateParser.html (-13 / +3 lines)
Lines 17-26 Link Here
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>
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>
18
	<td WIDTH="98%"><b>Where to get the parser generator</b><br>
18
	<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
19
	<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>.
20
	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
21
	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.
22
	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
23
    <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.
24
	grammar, please send request to the Jikes Parser Generator team.
25
	</blockquote>
25
	</blockquote>
26
	</p>
26
	</p>
Lines 150-160 Link Here
150
 </tr>
150
 </tr>
151
 <tr>
151
 <tr>
152
<th VALIGN=top align=left>javasym.java</th>
152
<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>
153
 <td>This is the contents of the class org.eclipse.jdt.core.compiler.TerminalTokens.</td>
154
 <ul>
155
 <li>TokenName$eof with TokenNameEOF</li>
156
 <li>TokenName$error with TokenNameERROR</li>
157
 </ul></td>
158
 </tr>
154
 </tr>
159
 <tr>
155
 <tr>
160
<th VALIGN=top align=left>javadef.java</th>
156
<th VALIGN=top align=left>javadef.java</th>
Lines 173-184 Link Here
173
 </li>
169
 </li>
174
 <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 
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 
175
 interface name. Simply copy the field declarations. The actual source of this class will guide you.</li>
171
 interface name. Simply copy the field declarations. The actual source of this class will guide you.</li>
176
 <li>This is the contents of the class org.eclipse.jdt.internal.compiler.parser.TerminalTokens. You need to replace:<br>
177
 <ul>
178
 <li><font color="#3366FF">TokenName$eof</font> with <font color="#3366FF">TokenNameEOF</font></li>
179
 <li><font color="#3366FF">TokenName$error</font> with <font color="#3366FF">TokenNameERROR</font></li>
180
 </ul>
181
 </li>
182
 <li>The last step is to update the resource files:<br>
172
 <li>The last step is to update the resource files:<br>
183
 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.
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.
184
 Then run the following command-line:
174
 Then run the following command-line:
(-)grammar/java_1_4.g (+3 lines)
Lines 95-100 Link Here
95
	COMMA
95
	COMMA
96
	DOT
96
	DOT
97
	EQUAL
97
	EQUAL
98
    EOF ERROR
98
99
99
--    BodyMarker
100
--    BodyMarker
100
101
Lines 147-152 Link Here
147
	','    ::= COMMA
148
	','    ::= COMMA
148
	'.'    ::= DOT
149
	'.'    ::= DOT
149
	'='    ::= EQUAL
150
	'='    ::= EQUAL
151
    $EOF   ::= EOF
152
    $ERROR ::= ERROR
150
	
153
	
151
$Start
154
$Start
152
	Goal
155
	Goal
(-)grammar/java_1_5.g (+3 lines)
Lines 101-106 Link Here
101
	EQUAL
101
	EQUAL
102
	AT
102
	AT
103
	ELLIPSIS
103
	ELLIPSIS
104
    EOF ERROR
104
105
105
--    BodyMarker
106
--    BodyMarker
106
107
Lines 154-159 Link Here
154
	'='    ::= EQUAL
155
	'='    ::= EQUAL
155
	'@'	   ::= AT
156
	'@'	   ::= AT
156
	'...'  ::= ELLIPSIS
157
	'...'  ::= ELLIPSIS
158
    $EOF   ::= EOF
159
    $ERROR ::= ERROR
157
	
160
	
158
$Start
161
$Start
159
	Goal
162
	Goal

Return to bug 52840