[Newcompiler] [AST] Comments from RBParser
Stéphane Ducasse
stephane.ducasse at univ-savoie.fr
Fri Aug 4 09:21:25 UTC 2006
Mathieu
in general comments are really not well managed in language.
I would say that in general a comment refer to the tree element above it
and comment the code below it :)
Now I do not know how this is implemented in the RBParser
Stef
On 4 août 06, at 10:43, Mathieu Suen wrote:
> Hi,
>
> I am starting to write test for the parser about comments.
>
> So I base my test on RBParser and I have a strange things:
>
> RBParser parseMethod: 'zork 1 to: 2.. "foo". ^self'
> RBParser parseMethod: 'zork 1 to: 2.. "foo".. ^self'
>
> ->Comment are on the RBVariableNode of self
>
> RBParser parseMethod: 'zork 1 to: 2. "foo". ^self'
>
> ->Comment are on the RBLiteralNode of 2
>
> It is normal? (For pretty print it ...)
>
> Math
>
>
More information about the Newcompiler
mailing list