[Newcompiler] About comment

Mathieu Suen mathieusuen at yahoo.fr
Tue Aug 1 15:07:27 UTC 2006


Yeap so you think it could be my next small "closed" project :)

----- Message d'origine ----
De : Marcus Denker <denker at iam.unibe.ch>
À : Mathieu Suen <mathieusuen at yahoo.fr>; "The New Compiler, AST, IRBuilder, Closures..." <newcompiler at lists.squeakfoundation.org>
Envoyé le : Mardi, 1 Août 2006, 4h50mn 16s
Objet : Re: [Newcompiler] About comment


On 28.07.2006, at 16:05, Mathieu Suen wrote:

> Hi,
>
> I was wondering how/where the new compiler ignore comments?
>

The question is if the comments are availabe in the AST like they are
in when the AST is build up with the RBParser...

the SqueakScanner seems to not skip comment:

comment

    comments add: outputStream contents.
    super comment.


Now the question is what the parser does with the comments...

What we need is to have the SqueakScanner/SqueakParser to provide
comments in the AST just like RBParser/RBScanner does.

So I guess the first start would be to write tests for it...

     Marcus




More information about the Newcompiler mailing list