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

Last change on this file since 102 was 5, checked in by zeiss, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 896 bytes
Line 
1module workflow.AntlrGenerator
2
3import org.eclipse.emf.mwe.utils.*
4
5var targetDir = "src-gen"
6var fileEncoding = "Cp1252"
7var modelPath = "src/model"
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
18                // this class will be generated by the xtext generator
19                register = de.ugoe.cs.swe.bnftools.EbnfStandaloneSetup {}
20                load = {
21                        slot = "model"
22                        type = "EtsiBnf"
23                }
24        } 
25
26        component = org.eclipse.xpand2.Generator {
27                metaModel = org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel {}
28//              output = org.eclipse.xpand2.output.BlankLineSkippingOutput {}
29                expand = "templates::Antlr3::Root FOREACH model"
30                outlet = {
31                        path = targetDir
32                }
33                outlet = {
34                        name = "ruleasd"
35                        append = true
36                        path = targetDir
37                 }
38                fileEncoding = fileEncoding
39        }
40}
Note: See TracBrowser for help on using the repository browser.