[Newcompiler] [AST] Comments from RBParser

Marcus Denker denker at iam.unibe.ch
Fri Aug 4 20:30:25 UTC 2006


On 04.08.2006, at 17:04, Mathieu Suen wrote:

> Hi,
>
> It is really strange how RBParse store comments.
> And to write test for the NewCompiler is not unrefined.
>
> Somebody know how it is done?
> I mean,  dose someebody use them (e.g. for pretty print,  
> coloring....) and have trouble with it or not? And how you use it?
>
> For the time being I follow the way of RBParser to write test.
>
> More information:
>
> zork
>     ["foo" :each | each]
>     ["bar" :each | each]
>     ^self
>
> "foo" are on the  RBMethodNode but "bar" is on the RBVariableNode  
> of the arguments of the RBBlockNode ??
>
>
> Should I follow this or do it in a better way?

I have to admit that I did not look at how it is done in RB right  
now... so maybe it's quite bad. If you have an idea how to
do it better, then do it.

       marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3938 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/newcompiler/attachments/20060804/b0110909/smime.bin


More information about the Newcompiler mailing list