54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
|
module fr.n7.GeneratePDL3
|
||
|
|
||
|
import org.eclipse.xtext.xtext.generator.*
|
||
|
import org.eclipse.xtext.xtext.generator.model.project.*
|
||
|
|
||
|
var rootPath = ".."
|
||
|
|
||
|
Workflow {
|
||
|
|
||
|
component = XtextGenerator {
|
||
|
configuration = {
|
||
|
project = StandardProjectConfig {
|
||
|
baseName = "fr.n7.pdl3"
|
||
|
rootPath = rootPath
|
||
|
runtimeTest = {
|
||
|
enabled = true
|
||
|
}
|
||
|
eclipsePlugin = {
|
||
|
enabled = true
|
||
|
}
|
||
|
eclipsePluginTest = {
|
||
|
enabled = true
|
||
|
}
|
||
|
createEclipseMetaData = true
|
||
|
}
|
||
|
code = {
|
||
|
encoding = "UTF-8"
|
||
|
lineDelimiter = "\n"
|
||
|
fileHeader = "/*\n * generated by Xtext \${version}\n */"
|
||
|
preferXtendStubs = false
|
||
|
}
|
||
|
}
|
||
|
language = StandardLanguage {
|
||
|
name = "fr.n7.PDL3"
|
||
|
fileExtensions = "pdl3"
|
||
|
|
||
|
serializer = {
|
||
|
generateStub = false
|
||
|
}
|
||
|
validator = {
|
||
|
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
|
||
|
// Generates checks for @Deprecated grammar annotations, an IssueProvider and a corresponding PropertyPage
|
||
|
generateDeprecationValidation = true
|
||
|
}
|
||
|
generator = {
|
||
|
generateXtendStub = true
|
||
|
}
|
||
|
junitSupport = {
|
||
|
junitVersion = "5"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|