26 lines
722 B
Plaintext
26 lines
722 B
Plaintext
/*
|
|
* generated by Xtext 2.23.0
|
|
*/
|
|
package xtext.generator
|
|
|
|
import org.eclipse.emf.ecore.resource.Resource
|
|
import org.eclipse.xtext.generator.AbstractGenerator
|
|
import org.eclipse.xtext.generator.IFileSystemAccess2
|
|
import org.eclipse.xtext.generator.IGeneratorContext
|
|
|
|
/**
|
|
* Generates code from your model files on save.
|
|
*
|
|
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#code-generation
|
|
*/
|
|
class GameGenerator extends AbstractGenerator {
|
|
|
|
override void doGenerate(Resource resource, IFileSystemAccess2 fsa, IGeneratorContext context) {
|
|
// fsa.generateFile('greetings.txt', 'People to greet: ' +
|
|
// resource.allContents
|
|
// .filter(Greeting)
|
|
// .map[name]
|
|
// .join(', '))
|
|
}
|
|
}
|