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

  1. Introduction to PCCTS
  2. DLG and lexclass descriptions
  3. Adding actions to a DLG lexclass
  4. ANTLR and grammar descriptions
  5. Adding actions to an ANTLR grammar
  6. A complete compiler example in PCCTS
  7. Creating a project makefile using genmk

Bibliography

Other Tutorials

There are some other tutorials that you may like better than this one:

This page was last modified .