Algonquin College Computer Studies CST 8152 Compilers

97/06/24


Click here to start


Table of Contents

Algonquin College Computer Studies CST 8152 Compilers

Welcome to Algonquin College

Instructor Ian D. Allen

Contact Information

Things You Should Know

CST 8152 Course Outline

Course Learning Requirements

Marking Scheme

CST 8152 Major Academic Events

How to Succeed in this Course

Lab and Lecture Dialogue Protocol

Ground Rules

Required for Laboratories

CST 8152 Assignment 0

C Programming Style - CST 8152

C Programming Style

Compilation in Context

Language Processing

Compilation: Front End / Back End

Three Phases of Analysis

Lexemes, Tokens, Trees, and Grammar

Lexical Analysis: The Scanner

Syntactic Analysis: The Parser

Syntactic Analysis: The Parse Tree

Semantic Analysis: Finding Meaning

Examples of C Language Errors

C Language Degenerate Expressions

Back End: Code Generation

Lexical Analysis in detail

Regular Expressions

Finite State Machines and DFA

Programming a DFA

Code Fragment for a DFA Scanner

The NextState() Function

Typedefs for a Scanner

C Language Modularity: Using “static” data and functions

Returning a pointer to the global token structure in your scanner()

Parsing: A Simple Toy Grammar

Recursive Decent Parsing: How to turn a Grammar into C code

Recursive Descent Parsing: Coding A Very Small Grammar

Recursive Decent Parsing: Functions to parse the Toy Grammar I

Recursive Decent Parsing: Functions to parse the Toy Grammar II

Recursive Decent Parsing: Functions to parse the Toy Grammar III

Recursive Decent Parsing: Error Handling in nested functions

Recursive Decent Parsing: Error Handling by finding the semi-colon

Recursive Decent Parsing: Action Symbols in the Grammar

Recursive Decent Parsing: Actions in the Parsing Functions

Recursive Descent Parsing: The Interpreter Value Stack

CST 8152 Compilers Midterm #1 Review Questions

Author: Ian! D. Allen - idallen@freenet.carleton.ca

Email: idallen@freenet.carleton.ca

Home Page: http://idallen.com/teaching/

Other information:
Office: Rideau B-215-A Telephone: 747-4723 ext. 5949 FreeNet: idallen@freenet.carleton.ca FreeNet: http://idallen.com/

Download presentation source