An Introductory Tutorial on PCCTS
Randall J. Fisher
rfisher@ecn.purdue.edu
Disclaimer
This is not the official documentation for PCCTS or any of its constituent
parts. Please consult the official PCCTS documentation which should be more
accurate than this document.
Forward
This is an introduction and short tutorial on the use of
PCCTS: the Purdue Compiler Construction Tool Set. It is
intended to provide the student with enough understanding of PCCTS to write
their own grammar description files for use in EE468.
I will be ignoring the C++ and Java aspects of PCCTS, and concentrating on C.
Those of you who are using C++ or Java should check out the official PCCTS
documentation if this introduction isn't sufficient.
Table of Contents
- Introduction to PCCTS
- DLG and lexclass descriptions
- Adding actions to a DLG lexclass
- ANTLR and grammar descriptions
- Adding actions to an ANTLR grammar
- A complete compiler example in PCCTS
- Creating a project makefile using genmk
Bibliography
- The book on PCCTS is Terence John Parr's Language
Translation Using PCCTS & C++. It is published by Automata
Publishing Company, San Jose, CA 95129. email:info@apco.com. Copyright
1996. Downloadable versions of this book are available online off the ANTLR
Website at www.ANTLR.org.
- Terence is also working on a new book Practical Computer Language
Recognition and Translation. Previews of the work in progress are
available at
http://www.ANTLR.org/book/index.html.
Other Tutorials
There are some other tutorials that you may like better than this one:
- Terence Parr's Language Translation Using PCCTS & C++
contains a
tutorial in
zip format which can be downloaded.
- There is also a
tutorial by Scott Stanchfield.
This page was last modified
.