Lecture 8 – September 20, 2007

 

<S> => <A><B><C>

<A> =>  a <A> | a

<B> =>  b <B> | b

<C> =>  c <C> | c

The language defined by the grammar above consists of sentences containing one or more a’s followed by one or more b’s followed by one or more c’s.  (Homework problem10 from page 171)

 

Here is a link to the Pascal notes that we went over in the 12:30 class

Here is a link to the Pascal program we wrote in the 2:00 class which illustrates most of the material in the Pascal notes.

Here is a link to where to get the Pascal compiler for home which is also described well in the Pascal tutorial at TaoYue.com

There is an excellent Pascal tutorial at TaoYue.com - just do a google search

Note:  I have posted a programming assignment which is not due until NEXT Thursday,  September 27th, 2007.  It requires knowledge of material not yet discussed in class but which can be found in the TaoYue tutorial as well as elsewhere online and in the texts some of you picked up.   I suggest that you play around with what was discussed in class and come in with questions on Tuesday.  Do NOT wait until next week to start thinking about this program.