[Newcompiler] [ANN] First version of Shout using new SqueakParser/SqueakScanner

Andrew Tween amtween at hotmail.com
Sun Aug 27 09:47:54 UTC 2006


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?

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.

Cheers,
Andy



More information about the Newcompiler mailing list