[Newcompiler] About Pragma node

Mathieu Suen mathieusuen at yahoo.fr
Tue Aug 22 21:56:20 UTC 2006


Andrew Tween a écrit :
> 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.

Yes think it could be done in ASTTranslator or somewhere there.

> 
> 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.

Yes I think you are write.

> 
> 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
>>

	
 p4.vert.ukl.yahoo.com uncompressed Tue Aug 22 21:27:00 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