NobleBlocks

Research indexJournal article

Attribute based compiler implemented using visitor pattern

Neff

ACM SIGCSE Bulletin1 Mar 2004

NobleIDark:/48914/w1/20260525/28D6ED0FDOI10.1145/1028174.971347

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

In our compiler course for undergraduate students, we use a class of attribute grammars to specify type information, target code, and other properties calculated for the source program. In the design of the compiler, a modification of the visitor design pattern allows us to transparently compute the attributes. Within our framework, implementation is straightforward; the emphasis of the course shifts to theory and specification. In several offerings of the course, students have implemented parts of a highly modular compiler for a small, statically typed object oriented language.

Discussion

Citations

Topics

More

Suggest a correction or report