CS 3723 Programming Languages
Spring 2002 -- Review for Final Exam
Exam is Tuesday, 7 May 2002
Refer to the review for Exam 1
for material in the first part of
the course.
Topics:
- Full Parser of Course Grammar:
- Translation of AEs to Quadruples (Project III):
- Translation of Control Structures to Quadruples (Project IV):
- Comparison/contrast C/C++/Java:
- Discuss C, C++, and Java with respect to:
arrays, structs (or classes)
- Postscript:
- A 2-dimensional page description language.
- Allows the font characters themselves to be described algorithmically
and manipulated.
- Provides many good primitives for drawing 2-dim figures.
- A number of examples:
Postscript programs.
- Prolog:
Sample Questions:
- About parsers:
- Given a parser, say what it is doing (and how).
- Write a parser for a simple example language.
- Translating AEs to quads:
- Explain how the returned addresses of run-time
variables work. (Variables which will hold the desired
value at run time.)
- Given some semantic actions, say how they are working.
- Given a parser, create semantic actions to do some simple
task.
- Translating control stuctures:
- Describe how the backpatching works.
- Actually do the translation for some simple example.
- Postscript:
- Given a simple example program, answer questions about it.
- Prolog:
- Given a prolog program, answer questions about it.
Revision date: 2002-04-30.
(Please use ISO
8601, the International Standard.)