Programming Languages (CSC-302 98S)

[Instructions] [Search] [Current] [Changes] [Syllabus] [Handouts] [Outlines] [Assignments]


Quiz 1: Grammars

This is a closed-book quiz. Do not refer to web pages or books as you answer the questions.

The primary purposes of this quiz are to ensure that you're keeping of with the readings and to help highlight some important concepts.

Name:
1. In your own words, what is an ambiguous grammar?
2. Consider the grammar
Statement ::= Conditional | 'whatever'
Conditional ::= 'if' test 'then' Statement 'else' Statement
Conditional ::= 'if' test 'then' Statement
Is this grammar ambiguous? Why or why not?
3. In your own words, what is an attribute grammar?


[Instructions] [Search] [Current] [Changes] [Syllabus] [Handouts] [Outlines] [Assignments]

Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.

Source text last modified Mon Feb 2 09:06:39 1998.

This page generated on Mon Feb 2 09:09:54 1998 by SiteWeaver.

Contact our webmaster at rebelsky@math.grin.edu