UBC Theses and Dissertations

UBC Theses Logo

UBC Theses and Dissertations

Defining semantics with attribute grammars Rushworth, Thomas Bryan

Abstract

This thesis examines the semantic definition of a programming language by a form of attribute grammar for ease of understanding. The attributes are expressed in a simple macro language and when evaluated produce code for an abstract machine. Part of an actual definition is looked at and found to be too obscure to be useful. The reasons for the obscurity are identified and suggestions are made for eliminating them.

Item Media

Item Citations and Data

Rights

For non-commercial purposes only, such as research, private study and education. Additional conditions apply, see Terms of Use https://open.library.ubc.ca/terms_of_use.