Last change
on this file was
5,
checked in by zeiss, 14 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
896 bytes
|
Rev | Line | |
---|
[5] | 1 | module workflow.AntlrGenerator |
---|
| 2 | |
---|
| 3 | import org.eclipse.emf.mwe.utils.* |
---|
| 4 | |
---|
| 5 | var targetDir = "src-gen" |
---|
| 6 | var fileEncoding = "Cp1252" |
---|
| 7 | var modelPath = "src/model" |
---|
| 8 | |
---|
| 9 | Workflow { |
---|
| 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.