Embedded Translation

Embed output production code into the parser, so that the output is produced gradually as the parse runs.

In Syntax-Directed Translation , a pure parser merely creates an internal parse tree, so you need to do more to populate a Semantic Model .

Embedded Translation populates the Semantic Model by embedding code into the parser that populates the Semantic Model at appropriate points in the parse.

For more details see chapter 25 of the DSL book

| Catalog of DSL patterns |