[NewCompiler] Comment in AST are ready !

Stéphane Ducasse stephane.ducasse at univ-savoie.fr
Wed Sep 20 17:27:10 UTC 2006


This is cool

Mathieu peekBefore or peekBefor?
Because the first one is right!

Stef

On 20 sept. 06, at 00:55, Mathieu Suen wrote:

> Hi,
>
> I have finish commetn parsing.
> So to use it you have several way:
>
> 1. The old way for being compatible with refactoring engine
>
> 	aNode comments -> list of Interval
>
> 2. The new way:
> 	
> 	aNode peekBeforComment -> list of SqueakToken being befor the node
> 	aNode peekAfterComment -> list of SqueakToken being after the node
> 	aNode peekInsideComment -> list of SqueakToken who belong to  
> nobody inside the node
>
> To enable this feather you have to visit method node with  
> ASTCommenter.
>
> 	ASTCommenter new visitNode: aNode
>
> You will find the package in http://www.squeaksource.com/ 
> NewCompilerPragma
> Beceause of many change, I have recompile all the image without bug  
> (only the one seen befor
> beceause of a dot at the end of method pattern).
>
> For more information on where are comment on the tree you can see  
> the test:
>
> SqueakParserTest>>#methodDescribeWithAllComment:And:
> SqueakParserTest>>#test*
>
> I didn't throw any comment beceause people can make code  
> commenting, thus losing them can be
> annoying. That the aim of peekInsideComment: retreive comments that  
> aren't at a good place.
>
> Tell me if you find it all ok.
>
> Thanks
> 	Math
>
> 	
> 	
> 		
> ______________________________________________________________________ 
> _____
> 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