[plt-scheme] Code generation question from Shriram's Automata via Macros
On 8/3/07, Shriram Krishnamurthi <sk at cs.brown.edu> wrote:
> Why do anything at all if you define AUTOMATON as a macro?
>
> You did read the whole paper, right, not just the first half? (-:
I will revisit that half.... :)
> On 8/3/07, Grant Rettke <grettke at acm.org> wrote:
> > 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?
> > _________________________________________________
> > For list-related administrative tasks:
> > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
>