Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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 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.  
  
== Assumptions ==
+
== Initial conditions ==
* Eclipse plug-in project with a grammar file (SVG5.ast) is open as shown in Figure 1(a)
+
# 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(a)</b> Start</caption>
+
<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>
 
* srcGymnast 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"]
 

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

  1. Eclipse plug-in project with a grammar file (SVG5.ast) is open as shown in Figure 1
  2. 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
  1. 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