module org.xtext.example.mydsl.GenerateEinDsl

import org.eclipse.xtext.xtext.generator.*
import org.eclipse.xtext.xtext.generator.model.project.*

var rootPath = ".."

Workflow {
	
	component = XtextGenerator {
		configuration = {
			project = StandardProjectConfig {
				baseName = "ein-suggestions-dsl-core"
				rootPath = rootPath
				runtimeTest = {
					enabled = true
				}
				ideaPlugin = {
					enabled = false
				}
				web = {
					enabled = false

				}
				genericIde = {
                                enabled = true
                                name = "ein-suggestions-dsl-core-ide"
                                }
             mavenLayout = true
			}
			code = {
				encoding = "UTF-8"
				fileHeader = "/*\n * generated by Xtext \${version}\n */"
			}
		}
		language = StandardLanguage {
			name = "org.xtext.example.mydsl.EinDsl"
			fileExtensions = "eindsl"

			serializer = {
				generateStub = false
			}
			validator = {
				// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
			}
			parserGenerator = {
                        options = {
                        ignoreCase=true
                        }
            }
}
	}
}
