1: doctype public "-//IDN etl.sf.net//ETL//Grammar 0.2.1";
2:
3: /// This is a grammar for ecore language with java related extensions.
4: /// The grammar allows specification of java_class for the datatype.
5: grammar net.sf.etl.samples.ecore.EcoreJava {
6: namespace default e = "http://etl.sf.net/2006/samples/ecore/java/0.1";
7: include "Ecore.g.etl";
8:
9: context DataTypeContents {
10: /// Java class data type
11: statement JavaClass {
12: % java_class;
13: @ name += list . {
14: identifier;
15: };
16: };
17: };
18:
19: context default TopLevel {
20:
21: };
22:
23: };