[Newcompiler] [ANN] First version of Shout using new
SqueakParser/SqueakScanner
Stéphane Ducasse
stephane.ducasse at univ-savoie.fr
Sun Aug 27 14:47:22 UTC 2006
On 27 août 06, at 11:47, Andrew Tween wrote:
> Hi everyone,
> I have put together an experimental version of Shout which uses
> subclasses of
> SqueakParser/SqueakScanner. You can get it from here...
>
> http://www.squeaksource.com/shout/ShoutUsingNewCompiler.3.15-tween.
> 71.mcz
>
> It have developed/tested it in the NewCompiler.image.
>
> Currently, the subclasses have their own SmaCC definitions, but it
> would be good
> to merge the changed definiiton into the main parser/scanner. Who
> is the best
> person to talk to about that?
marcus/philippe?
>
> When I tried making changes to the SqueakParser and regenerating
> it, I got a lot
> of errors from which I couldn't recover. It's obvious why - I was
> compiling the
> SqueakParser with a compiler which uses the SqueakParser. Half way
> through
> compilation the SqueakParser is in an invalid state).
:)
> I got around this by using the old compiler to compile
> SqueakParser/
> scanner, but it raises the question - "if an image only contained
> the new
> compiler, then how could the parser be maintained?". How would this
> be handled -
> include the old compiler, modify the Smacc generator to compile to
> a temporary
> class and then rename it, have 2 Smacc parsers and alternate
> between them, ...?
> Of course, by subclassing SqueakParser/scanner I circumvented the
> problem
> altogether.
This is a really fun question.
>
> Cheers,
> Andy
>
More information about the Newcompiler
mailing list