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 From Specification to Optimal DFA, Continued. On to Context-Free and Context-Sensistive Grammars.
Held Monday, September 16, 2002
Summary
Today we move from lexing to parsing.
Notes
Overview
simplelanguages that we cannot express.
strings ofa
's andb
's with equal numbers ofa
's andb
's
a
(n+1) as input.
a
i and
a
j, with i
and j different.
a
ib
i and
a
jb
j
(which it should), then it will also accept
a
jb
i and
a
ib
j and
(which it should not).
a
's and b
's
may not be implementable on any machine with finite memory.
a
's and
b
's if
a
and
at least one b
and, if we remove an
a
and a b
from the
string, we end up with a string with equal numbers of
a
's and b
's.
a
's and
b
's if
a
and a b
to a string with an equal number of a
's and b
's.
::=
to separate the two parts of a rule.
Program ::= PROGAM identifier OPEN_PAREN Identifier-List CLOSE_PAREN Declaration-List Compound-Statement END_PROGRAM
Compound-Statement ::= BEGIN Statement-List END
a statement list can be a statement; it can also be a statement followed by a semicolon and another statement list.
Statement-List ::= Statement Statement-List ::= Statement SEMICOLON Statement-List
Statement ::= Assignment-Statement Statement ::= Compound-Statement ... Assignment-Statement ::= identifier ASSIGN Expression ...
Back to From Specification to Optimal DFA, Continued. On to Context-Free and Context-Sensistive 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:00 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.08.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby