[Newcompiler] [AST] Comments from RBParser

Mathieu Suen mathieusuen at yahoo.fr
Fri Aug 4 08:43:26 UTC 2006


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