國立清華大學資訊工程學系
CS 3404 --- 編譯器設計
Assignment #2
Due: 5:00 p.m., April 14, 1999

In this assignment, you are going to use lex to implement the scanner for a small Ada-like language named Macro. The lexical definition for Macro is given below. You are supposed to read in the source file as standard input and write the token types and values to the standard output. For consistency, you are required to use the definition in " lexicon.h". Turn in your program in the same way as in the first assignment.

Acknowledgement

This assignment is from CS 4410/6415 (Introduction to Compiler Design) of Georgia Institute of Technology, offered by Dr. Richard LeBlanc in Fall, 1998.