Question Question about #2 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #6 due Monday, 12 November (Mike O'Donnell)
Date: 2001, Nov 10
From: Roni Choudhury roni

I'm a bit confused about #2. The first question is logistical: 2.2 says to display a tree corresponding to the given string. Do we display the procedure activation tree or the parse tree corresponding to our grammar from 2.1? They have the same shape, but they are conceptually different things.

My other question is about the code fragment on page 200 of the text. I understand that right now the procedure M is undefined, but I don't know where the input string is, or what the variable "lookahead" is. It seems to me that the function main() will supply declarations and meanings for these variables (i.e., for "lookahead" and the input string) but this isn't the standard style of programming in C, so I was wondering if someone could clue me in to how we're supposed to deal with this code fragment. Thanks.

roni


Messages

1. Feedback Give the activation tree by Mike O'Donnell, 2001, Nov 10

to: "Question about #2"