source: default/trunk/de.ugoe.cs.swe.bnftools.ebnf.generator/src/workflow/SimpleBnfGenerator.mwe2 @ 61

Last change on this file since 61 was 5, checked in by zeiss, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 985 bytes
Line 
1module workflow.SimpleBnfGenerator
2
3import org.eclipse.emf.mwe.utils.*
4
5var modelPath = "src/model"
6
7
8
9Workflow {
10
11        component = org.eclipse.xtext.mwe.Reader {
12                // lookup all resources on the classpath
13                // useJavaClassPath = true
14
15                // or define search scope explicitly
16                path = modelPath
17                uriFilter = org.eclipse.xtext.mwe.NameBasedFilter {
18                        regularExpression="repeatedRuleTest1.*"
19//                      regularExpression="repeatedRuleTest2.*"
20//                      regularExpression="optional.*"
21                }
22
23                // this class will be generated by the xtext generator
24                register = de.ugoe.cs.swe.bnftools.EbnfStandaloneSetup {}
25                load = {
26                        slot = "model"
27                        type = "EtsiBnf"
28                }
29        } 
30
31        component = org.eclipse.xtend.XtendComponent {
32                metaModel = org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel {}
33                invoke = "extensions::SimpleBnf::transform(model)"
34                outputSlot = "simplebnfmodel"
35        }
36
37        component = Writer {
38                useSingleGlobalResourceSet = true
39                modelSlot = "simplebnfmodel"
40                uri = "src-gen/newModel.xmi"
41        }
42       
43}
Note: See TracBrowser for help on using the repository browser.