Primary:
[Skip To Body]
[Front Door]
[Current]
[Glance]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Sets:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Miscellaneous:
[2001S]
[98F]
[SamR]
[Glimmer Labs]
Back to Introduction to Grammars and Parsing. On to Ambiguous Grammars.
Held Wednesday, September 17, 2002
Summary
Today we consider two kinds of grammars: Context-Free Grammars (CFGs) and Context-Sensitive Grammars.
Notes
Due
Overview
A : XYZ
, we might limit or expand the translation
of Y based on the translation of X or Z.
ASSIGN Exp : ASSIGN NUM ASSIGN Exp : ASSIGN ID ASSIGN Exp : ASSIGN Exp ADDOP Exp ASSIGN Exp : ASSIGN Exp MULOP Exp ... MULOP Exp : MULOP NUM MULOP Exp : MULOP ID MULOP Exp : MULOP PAREN Exp ADDOP Exp PAREN ...
Program : Declarations DONE Assignments END Declarations : Declaration SEP Declarations Declarations : Declaration : TYPE ID Assignments : Assignment SEP ASSIGNMENTS Assignments : Assignment : ID EQUALS Exp ...
Program : Declarations DONE Assignments END Declarations : Declaration SEP Declarations Declarations : Declaration : Declare ID Declare ID : TYPE ID Declared ID Declared ID1 Declared ID2 : Declared ID2 Declared ID1 Declared ID DONE : DONE Declared ID Declared ID END : END Assignments : Assignment SEP ASSIGNMENTS Assignments : Declared ID Assignment : ID EQUALS Declared ID Exp Declared ID Assignment : Assignment Declared ID ...
Back to Introduction to Grammars and Parsing. On to Ambiguous Grammars.
Primary:
[Skip To Body]
[Front Door]
[Current]
[Glance]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Sets:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Miscellaneous:
[2001S]
[98F]
[SamR]
[Glimmer Labs]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Fri Dec 6 10:38:03 2002.
The source to the document was last modified on Wed Sep 4 10:08:34 2002.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS362/2002F/Outlines/outline.09.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby