Subject: [CSG111] Re: CSG111 MP5: Exercise 3 Clarification
From: Wendy (wendybeth.minton@gmail.com)
Date: Sun Mar 05 2006 - 13:37:34 EST
Hi,
In statements.scm, what is the function true-value? Or better yet, where is
it defined, or do we have to define it? If we have to define it, what is
its contract?
Thanks,
Wendy
On 3/4/06, Therapon Skotiniotis <skotthe@ccs.neu.edu> wrote:
>
> On Sat, Mar 04, 2006 at 02:45:34PM -0500, Wendy wrote:
> > Hi,
> >
> > I am a little confused about what is being asked in number 3. As interp
> is
> > provided, I'm assuming the main goal here is to add the grammer. But do
> I
> > add to lang, or create a new lang-like file?
>
> Add.
>
> > If I add to lang, I've noticed
> > there are a few things missing and few things that will overlap There is
> no
> > addition, multiplication, or division in the language for the
> assignment,
> > but there is a Exercise 4.22 (its assumed to be in the grammer of
> > expression). I'm assuming we're ignoring these operatoins as we did last
> > time.
>
> Yes, + * etc. are easy to do. You've already done that before. Just work
> with -
>
> > as for the overlapping, grammatical elements such as if are already
> > defined as an expression. Are we to modify this definition, thus forcing
> if
> > to be a statement and not an expression. Is this correct?
>
> Yes. Make any modifications you need so that at the end your interpreter
> will implement the Statement language.
>
> -- Theo
>
>
_______________________________________________
csg111 mailing list
csg111@lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/csg111
This archive was generated by hypermail 2b28 : Thu Mar 15 2007 - 15:00:09 EDT