Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Syntax and Semantics
[go: Go Back, main page]


DAT2/F6S: Syntax and Semantics 2002

Lecture 5


Syntax and Semantics

Topics

In our previous lecture we saw that certain languages are not regular. Hence, if we wish to describe a richer class of languages, we need a model that is more expressive than regular expressions. In the next three lectures, we shall look at one such model, viz. the context-free grammars and the automata that recognize the context-free languages.

Context-free grammars, which you have already met in the SPO course, are very important for the description of large parts of the syntax of programming languages. In particular, to this end, it is important that they are not ambiguous, a concept that will be introduced in this lecture.

Context-free grammars were introduced by Noam Chomsky (who is a professor at Massachusetts Institute of Technology), who also proposed one of the notions of normal form for such grammars. This kind of normal form - usually referred to as Chomsky Normal Form - will also be presented in this lecture. Most importantly, we shall see that there is an algorithm for converting every context-free grammar to an equivalent one in Chomsky Normal Form.

Time and Location

Friday, 1 March 2002 at 10:15 in A4-106.

Reading Material

Exercises


Luca Aceto, Institute of Computer Science, Aalborg University.
Last modified: Wednesday, 13-Feb-2002 08:27:06 CET.