Work Note 3, DM516, Spring 2010
Lecture February 8
-
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 17
-
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.
Last modified: Thu Feb 4 09:48:32 CET 2010
Kim Skak Larsen
(kslarsen@imada.sdu.dk)