[Newcompiler] Comment paring: Question

Mathieu Suen mathieusuen at yahoo.fr
Mon Oct 9 17:06:17 UTC 2006


Marcus Denker a écrit :
> Hi Math,
> 
> I was looking at the comment parsing... one question:
> 
> If I print
> 
> (SqueakParser
>     parseMethod: (SqueakParserTest>>#methodDescribeWithAllComment:And:)
> getSource) addComment
> 
> then the comments seem to be off by one at some point, e.g.
> 
> 
> original code:
> 
>     "26b"
>     3 + 3. "27a"
>     
>     "28b"
>     ^Object new. "29a"
> 
>     "0 remove"
>     "0 remove"
> 
> pretty printed:
> 
>     "23b"    "0 remove"
>     3 + 3.    "27a"
> 
>     "26b"
>     ^ Object new    "29a"
> 
>     "28b"
> 
> ----------
> 
> the "26b" seems to be at the wrong statement....
> 
>      Marcus
> 

Yes but this is due to the RBFormatter who don't put the comments in the right place.
I inspect the tree and the comment is attach to the 3 + 3 message node.

I will see this.
Damien can you see if you can adapte gutenberg to the new way of paring comment?
Thanks
	Math

	
	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quel que 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