Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Grmr2JavaReport"
Line 3: | Line 3: | ||
This article describes the issues encountered, while working on the generation of Java code from a grammar file using [[Gymnast]], [[Emfatic]] and [[Grammar2Ecore]] frameworks. | This article describes the issues encountered, while working on the generation of Java code from a grammar file using [[Gymnast]], [[Emfatic]] and [[Grammar2Ecore]] frameworks. | ||
− | == | + | == Initial conditions == |
− | + | # Eclipse plug-in project with a grammar file (SVG5.ast) is open as shown in Figure 1 | |
− | + | # srcGymnast (in Figure 1) is the source folder to which Gymnast runtime core plug-in is added manually. Please refer [https://bugs.eclipse.org/bugs/show_bug.cgi?id=233805 "Bugzilla entry 233805"] | |
<table border="0" cellpadding="8"> | <table border="0" cellpadding="8"> | ||
<tr> | <tr> | ||
<td>[[Image:Grmr2JavaReport1.jpg]]</td> | <td>[[Image:Grmr2JavaReport1.jpg]]</td> | ||
</tr> | </tr> | ||
− | <caption align="bottom"><b>Figure 1 | + | <caption align="bottom"><b>Figure 1 </b> Project Explorer view </caption> |
+ | </table> | ||
+ | # Dependent Plug-ins are added in the MANIFEST.MF file. Right clicking on the grammar file shows options like 'Generate .genmodel and Java', 'Generate .genmodel' etc. Please refer Figure 2 | ||
+ | <table border="0" cellpadding="8"> | ||
+ | <tr> | ||
+ | <td>[[Image:Grmr2JavaReport2.jpg]]</td> | ||
+ | </tr> | ||
+ | <caption align="bottom"><b>Figure 2 </b> Context menu for grammar file </caption> | ||
</table> | </table> | ||
− | |||
− |
Revision as of 10:48, 24 May 2008
Generation of Java from Grammar file
This article describes the issues encountered, while working on the generation of Java code from a grammar file using Gymnast, Emfatic and Grammar2Ecore frameworks.
Initial conditions
- Eclipse plug-in project with a grammar file (SVG5.ast) is open as shown in Figure 1
- srcGymnast (in Figure 1) is the source folder to which Gymnast runtime core plug-in is added manually. Please refer "Bugzilla entry 233805"
- Dependent Plug-ins are added in the MANIFEST.MF file. Right clicking on the grammar file shows options like 'Generate .genmodel and Java', 'Generate .genmodel' etc. Please refer Figure 2