[Newcompiler] [Fwd: Re: About getting one parser]

Mathieu Suen mathieusuen at yahoo.fr
Tue Aug 22 22:09:16 UTC 2006


Hi

2006/8/22, stéphane ducasse <ducasse at iam.unibe.ch>:
> Hi marcus and others
>
> we are discussing with mathieu about what to do for the parser.
> And indeed this would be good to have one parser that would work well
> for all the needs
> we have.
>
> So mathieu will talk to you about that. Here are some of our questions.
>         - Does it make sense to have Shout parser a subclass of a common
> super of the new clean parser?
>         - Can shout be using a non dedicated parser (what would be
then the
> points to pay attention).
>         -....

As stated by Andrew Tween, I don't think Shout can use the RB AST or
SmaCC parser for two reasons:
- RB AST can't produce the same code that you typed. CodeModel can do
that but lacks the behavior of the RB AST.
- Shout needs some kind of incremental parser that can deal with errors.

> Now mathieu is working on in which nodes do we put comments and this
> reminded me that Philippe has the possibility
> to annotate the AST with information. Is it in the AST?

No. It basically adds an annotations instance variable to
RBProgramNode and some convenience methods. I didn't feel this is
needed by anyone but me (ok, Nik, but he needs all the rest too) and I
can easily merge new versions in. But stuff that is of general
interest I of course make sure it's in the main branch.

Then there is of course a custom Parser/Compiler but that's a
different package (and doesn't duplicate anything just adds stuff).

Philippe

-------------- next part --------------
An embedded message was scrubbed...
From: "Philippe Marschall" <philippe.marschall at gmail.com>
Subject: Re: About getting one parser
Date: Tue, 22 Aug 2006 23:48:44 +0200
Size: 3522
Url: http://lists.squeakfoundation.org/pipermail/newcompiler/attachments/20060823/f0950aef/Aboutgettingoneparser.eml


More information about the Newcompiler mailing list