| 29 |
<tr> |
<tr> |
| 30 |
<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> |
| 31 |
<td WIDTH="98%"><b>Where to get the grammar</b><br> |
<td WIDTH="98%"><b>Where to get the grammar</b><br> |
| 32 |
<blockquote>The latest grammar is always located in the <code>java_1_4.g</code> file. Go to the org.eclipse.jdt.core plugins |
<blockquote>The latest grammar is always located in the <code>java_1_5.g</code> file. Go to the org.eclipse.jdt.core plugins |
| 33 |
directory (<font color="#3366FF">eclipse\plugins\org.eclipse.jdt.core</font> where eclipse is the root of your eclipse installation) and open the |
directory (<font color="#3366FF">eclipse\plugins\org.eclipse.jdt.core</font> where eclipse is the root of your eclipse installation) and open the |
| 34 |
<font color="#3366FF">grammar</font> directory. Then search for the <font color="#3366FF">java_1_4.g</font> file inside the |
<font color="#3366FF">grammar</font> directory. Then search for the <font color="#3366FF">java_1_5.g</font> file inside the |
| 35 |
folder <font color="#3366FF">grammar</font>. Then copy its contents from: |
folder <font color="#3366FF">grammar</font>. Then copy its contents from: |
| 36 |
<PRE>--main options |
<PRE>--main options |
| 37 |
%options ACTION, AN=JavaAction.java, GP=java, |
%options ACTION, AN=JavaAction.java, GP=java, |
| 175 |
<PRE> |
<PRE> |
| 176 |
D:\temp>java -classpath jdtcore.jar:. UpdateParserFiles javadcl.java javahdr.java |
D:\temp>java -classpath jdtcore.jar:. UpdateParserFiles javadcl.java javahdr.java |
| 177 |
</PRE> |
</PRE> |
| 178 |
Once this done, you will end up with 21 new files inside d:\temp. They are called parser<n>.rsc, with n equals to 1..20 and readableNames.properties. |
Once this done, you will end up with 25 new files inside d:\temp. They are called parser<n>.rsc, with n equals to 1..24 and readableNames.properties. |
| 179 |
All these files need to be moved to the org\eclipse\jdt\internal\compiler\parser folder. Now you are ready to execute and test |
All these files need to be moved to the org\eclipse\jdt\internal\compiler\parser folder. Now you are ready to execute and test |
| 180 |
the new parser. |
the new parser. |
| 181 |
</li> |
</li> |