Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Grmr2JavaReport"

Line 4: Line 4:
  
 
== Initial conditions ==
 
== Initial conditions ==
# Eclipse plug-in project with a grammar file (SVG5.ast) is open as shown in Figure 1
+
* 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"]
+
* 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"]  
[[Image:Grmr2JavaReport1.jpg]]
+
<table border="0" cellpadding="8">
# 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
+
<tr>
 +
<td>[[Image:Grmr2JavaReport1.jpg]]</td>
 +
</tr>
 +
<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">
 
<table border="0" cellpadding="8">
 
<tr>
 
<tr>

Revision as of 10:56, 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"
Grmr2JavaReport1.jpg
Figure 1 Project Explorer view
  • 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.
Grmr2JavaReport2.jpg
Figure 2 Context menu for grammar file

Back to the top