Work Note 3, DM516, Spring 2012
Lecture February 6
-
Syntax analysis (parsing).
-
The tool
bison
.
Background material: Appel Chapter 3, Bison documentation.
With regards to literature and material on bison, see the
literature page.
Exercises February 9
-
Appel 3.1, 3.3 a-c, 3.10, 3.15.
-
We have considered grammars with rules for
'+', '-', '*', '/', id, num and parentheses.
Expand these grammars with boolean operators (and, or, not) and
comparisons (==, <=, etc.)
in such a way that you get the usual precedens and associativity.
Announcements
-
In weeks 6, 7, and 8, there will be some changes compared with
the announced by the faculty as to which slots are used for
lectures and exercises, respectively.
Last modified: Fri Feb 3 12:09:28 CET 2012
Kim Skak Larsen
(kslarsen@imada.sdu.dk)