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]


INF2: Syntax and Semantics 2003

Lecture 5


Syntax and Semantics

Topics

In lecture 4 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 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 the 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

Thursday, 20 February 2003 at 10:15 in A4-106.

Reading Material

Exercises


Luca Aceto, Institute of Computer Science, Aalborg University.
Last modified: .