Exercise 3.10

90 views
Skip to first unread message

Jones Bro

unread,
Oct 15, 2013, 11:27:55 AM10/15/13
to eo...@googlegroups.com
hello,

I need help with 3.10

Add an operation list to the language. This operation should
take any number of arguments, and return an expressed value containing the list of
their values. For example,
let x = 4
in list(x, -(x,1), -(x,3))
should return an expressed value that represents the list (4 3 1).

JB

Dorian Ellerbe

unread,
Oct 16, 2013, 7:20:04 PM10/16/13
to eo...@googlegroups.com

Hi,

It would help if you described what you don't understand.

-Dorian

--
You received this message because you are subscribed to the Google Groups "EOPL3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eopl3+un...@googlegroups.com.
To post to this group, send email to eo...@googlegroups.com.
Visit this group at http://groups.google.com/group/eopl3.
For more options, visit https://groups.google.com/groups/opt_out.

Marco Morazan

unread,
Oct 17, 2013, 3:07:56 PM10/17/13
to eo...@googlegroups.com
Well, you need to add a list expression to the syntax. You also need to change the denoted and expressed values of your language to now contain lists. Once you have implemented a representation for lists, you need to write down the semantics for list expressions. Finally, you need to implement the semantics as part of your evaluator.

Marco


--
You received this message because you are subscribed to the Google Groups "EOPL3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eopl3+un...@googlegroups.com.
To post to this group, send email to eo...@googlegroups.com.
Visit this group at http://groups.google.com/group/eopl3.
For more options, visit https://groups.google.com/groups/opt_out.



--

Cheers,

Marco

Have a´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·´ * wonderful day! :)
Reply all
Reply to author
Forward
0 new messages