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

From: Grant Rettke (grettke at acm.org)
Date: Fri Aug 3 16:36:33 EDT 2007

On 8/2/07, 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?

No reason. Should that be quoted instead?


Posted on the users mailing list.