Work Note 3, DM546, Spring 2013
Lecture February 5
-
The tool
bison.
-
Abstract Syntax Trees.
Background material: Appel Chapters 4, Bison documentation.
With regards to literature and material on bison, see the
literature page.
Exercises February 7
-
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: Wed Feb 5 12:29:04 CET 2014
Kim Skak Larsen
(kslarsen@imada.sdu.dk)