[Newcompiler] [AST] Comments from RBParser

Stéphane Ducasse stephane.ducasse at univ-savoie.fr
Fri Aug 4 15:25:14 UTC 2006


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

this is well known that comments are not well done in ST AST.
> 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?

If you find a better way do it. This is important to improve. 


More information about the Newcompiler mailing list