[NewCompiler] Comment in AST are ready !

Marcus Denker denker at iam.unibe.ch
Thu Sep 21 08:58:13 UTC 2006


Hi Mathieu,

Great! I´l have a look at it.

(I´m right now on the road with not a real good internet connection)

On 9/20/06, Mathieu Suen <mathieusuen at yahoo.fr> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/newcompiler/attachments/20060921/35899cb7/attachment.htm


More information about the Newcompiler mailing list