Chapter 6. Abstract Syntax

Grasp the subject, the words will follow.

—Cato the Elder Roman orator and politician (234 BC–149 BC)

This chapter explains why abstract syntax plays a central role in a language specification. The chapter describes the relationship between a mogram and its language specification and explains how to create an abstract syntax model. Finally, the chapter introduces a small example language, for which an abstract syntax model is presented.

6.1 The Pivotal Role of Abstract Syntax

Abstract syntax for language engineering is of critical importance. It is the pivot between various concrete syntaxes of the same language, as well as between the syntactical structure of a mogram and its meaning. Thus, it ...

Get Software Language Engineering: Creating Domain-Specific Languages Using Metamodels now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.