54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
module xtext.GenerateGame
|
|
|
|
import org.eclipse.xtext.xtext.generator.*
|
|
import org.eclipse.xtext.xtext.generator.model.project.*
|
|
|
|
var rootPath = ".."
|
|
|
|
Workflow {
|
|
|
|
component = XtextGenerator {
|
|
configuration = {
|
|
project = StandardProjectConfig {
|
|
baseName = "game"
|
|
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 = "xtext.Game"
|
|
fileExtensions = "game"
|
|
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
}
|