Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. module org.xtext.example.mydsl.GenerateMyDsl
  2.  
  3. import org.eclipse.xtext.xtext.generator.*
  4. import org.eclipse.xtext.xtext.generator.model.project.*
  5.  
  6. var rootPath = ".."
  7.  
  8. Workflow {
  9.  
  10. component = XtextGenerator {
  11. configuration = {
  12. project = StandardProjectConfig {
  13. baseName = "XText"
  14. rootPath = rootPath
  15. runtimeTest = {
  16. enabled = true
  17. }
  18. ideaPlugin = {
  19. enabled = true
  20. }
  21. web = {
  22. enabled = true
  23. }
  24. mavenLayout = true
  25. }
  26. code = {
  27. encoding = "windows-1250"
  28. fileHeader = "/*\n * generated by Xtext \${version}\n */"
  29. }
  30. }
  31. language = StandardLanguage {
  32. name = "org.xtext.example.mydsl.MyDsl"
  33. fileExtensions = "mydsl"
  34.  
  35. serializer = {
  36. generateStub = false
  37. }
  38. validator = {
  39. // composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
  40. }
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement