Closed mchlrch closed 4 years ago
Preprocessing the model before generation and building up a generator context allows to simplify the generator templates. Especially in places where currently Xtend functions are used to figure out the context ad-hoc (for example the conditional in https://github.com/zazuko/rdf-mapping-dsl/blob/master/com.zazuko.rdfmapping.dsl.parent/com.zazuko.rdfmapping.dsl/src/com/zazuko/rdfmapping/dsl/generator/CsvwDialectGenerator.xtend#L82).
better testing depends on #41
looks good with examples from #41
Preprocessing the model before generation and building up a generator context allows to simplify the generator templates. Especially in places where currently Xtend functions are used to figure out the context ad-hoc (for example the conditional in https://github.com/zazuko/rdf-mapping-dsl/blob/master/com.zazuko.rdfmapping.dsl.parent/com.zazuko.rdfmapping.dsl/src/com/zazuko/rdfmapping/dsl/generator/CsvwDialectGenerator.xtend#L82).