After the above, you can type in the program you wish to use for
evaluation in the definitions window. Hit run. To evaluate an
expression type it in the interactions window.
I use a wrapper function around value-of-program:
;; eval : String -> ExpVal
(define (eval string)
(value-of-program (scan&parse string)))
After hitting run:
Welcome to DrRacket, version 5.1.3 [3m].
Language: eopl; memory limit: 128 MB.
> (eval "let x = 2 in -(x, 2)")
#(struct:num-val 0)
>
I hope this helps.
Marco
> --
> You received this message because you are subscribed to the Google Groups "EOPL3" group.
> To post to this group, send email to eo...@googlegroups.com.
> To unsubscribe from this group, send email to eopl3+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/eopl3?hl=en.
>
>
--
Cheers,
Marco