[plt-scheme] Code generation question from Shriram's Automata via Macros

From: Grant Rettke (grettke at acm.org)
Date: Thu Jan 1 18:24:04 EST 2009

On Thu, Aug 2, 2007 at 7:50 AM, Robby Findler <robby at cs.uchicago.edu> wrote:
> On 8/2/07, Noel Welsh <noelwelsh at gmail.com> wrote:
>> On 8/2/07, Grant Rettke <grettke at acm.org> wrote:
>> > Suppose I took that definition and did something like:
>> >
>> > (define the-data
>> > "(automaton init
>> >                      (init :
>> >                            (c -> more))
>> >                      (more :
>> >                            (a -> more)
>> >                            (d -> more)
>> >                            (r -> end))
>> >                      (end : )))"
>> >
>> > First question, how would I got about evaluating it and binding it to
>> > a value like in previous example?
>>
>> http://schemecookbook.org/Cookbook/StringEval
>
> One could use eval here, but may I ask why you've got a string in the
> first place?

I used a string there because I didn't understand what I was doing. I
should have quoted it.


Posted on the users mailing list.