[Newcompiler] About Pragma node

Andrew Tween amtween at hotmail.com
Tue Aug 22 19:14:11 UTC 2006


Hi Math,
> Dose it make sence to make a new node for pragma.
>
> I have list of pragmas but it is juste here to recover from the parser,
> pragma can't be visite by any Visitor.
>
> What do you think?

Currently, the parser creates literals?
So, in <a: #((1 2) (3 4))> , the parser creates the #((1 2) (3 4)) literal?

See the email I just copied to you. I think that creating literals when parsing
might be a bad thing. A better approach might be to allow the compiler to create
them, from the info in the AST. The AST would hold the source for a literal e.g.
'#fred' , but the actual symbol #fred would only be created when the compiler
needed to put it into the literal frame.

I'm still not sure about this, but if I'm right, then you would need the Pragma
node for the code generator/compiler/encoder to visit it, create the
Pragma/literal objects, and add them to the method properties.

Of, course I could be very confused :)
It needs more thought.

Cheers,
Andy
>
> Math
>
>
>  p5.vert.ukl.yahoo.com uncompressed Tue Aug 22 16:27:01 GMT 2006
>
>
> ___________________________________________________________________________
> Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet
!
> Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos
expériences.
> http://fr.answers.yahoo.com
>
>



More information about the Newcompiler mailing list