Up Next

This chapter gives you the big picture on computer language translation. In the next chapter, we’re going to drill down further into the model-driven approach. We’ll learn how to use templates to generate a number of DSLs and programming languages. The examples feed off of a variety of input models to create template-based output models.

Before we move on, let me highlight the two important lessons from this chapter. First, to properly translate an input phrase, we can’t just cleverly replace input symbols with output symbols. We have to fully understand the input syntactically and semantically and then pick the proper output construct. Second, when using the model-driven approach, we need to decouple input model traversal order from ...

Get Language Implementation Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.