Re: My email address and a question regarding the implementation of thehomework.

From: Assaf J. Kfoury (kfoury@cs.bu.edu)
Date: Mon Sep 20 2004 - 13:52:28 EDT


Received: from cs.bu.edu (kfoury@fiddle [128.197.10.114]) (authenticated bits=0) by cs.bu.edu (8.12.2/8.12.2) with ESMTP id i8KHqVdD003224; Mon, 20 Sep 2004 13:52:31 -0400 (EDT)
Sender: kfoury
Message-ID: <414F18DB.83391B86@cs.bu.edu>
Date: Mon, 20 Sep 2004 13:52:28 -0400
From: "Assaf J. Kfoury" <kfoury@cs.bu.edu>
Organization: Boston University
X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.8 sun4u)
X-Accept-Language: en
To: Michael Long <mlong@cs.bu.edu>
CC: cs520@cs.bu.edu
Subject: Re: My email address and a question regarding the implementation of  thehomework.
References: <414F1448.4030403@cs.bu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1648
Status:   
X-Mozilla-Status: 8011
X-Mozilla-Status2: 00000000
X-UIDL: 411f69ec00000a3f

Thanks for the e-mail address -- it is already posted.

Concerning the implementation. Yes, OCaml is allowed.
True, Pierce's implementation is in OCaml, but you will
have to remove the parts related to non-Boolean
expressions (which, I admit, is easy) and also run and
debug the implementation before you turn it in. At the
very least, if everything else is easy, you will get a feel
for OCaml as a language and learn how to run it.

In answer to your question: "Is it acceptable to require
that nested conditions be formatted within parentheses?"

It is NOT acceptable, but if you make it a requirement
of your implementation (because you do not know how
to handle the nesting of conditionals in the absence of
parentheses), then please state explicitly conditions
under which your program will run correctly.

Assaf

Michael Long wrote:

> I have a question regarding the implementation of the programming
> portion of homework;
>
> Does "any language" include OCaml? Stripping out support for
> non-boolean expressions from Pierce's code is really straight-forward,
> but this doesn't feel like my own work.
>
> I'm trying to ensure that I understand the requirements for this
> assignment :
> An implementation of a parser and evaluator for the stripped down
> (boolean & if-then-else only) language specified in chapter 3. If
> should take expressions and either return the full evaluation or a
> parsing error. And this can be in "any language" of our choosing.
>
> Is it acceptable to require that nested conditions be formatted within
> parentheses? I think this would ease parsing in Java to some extent.
>
> Thanks
> - Michael Long



This archive was generated by hypermail 2b29 : Fri Nov 19 2004 - 17:00:43 EST