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

Mathieu Suen mathieusuen at yahoo.fr
Sun Aug 27 15:39:14 UTC 2006


Andrew Tween a écrit :
> 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
> 
> 

Hi Andrew,

I have looking your Scanner and I think the tokenList could help us to
find where to put comment and whitespace. The list is a bit the same as
the nodes list when we build the tree but nodes don't containt comment
and whitespace and nodes is always changing.

To put comments/whitespace/parentheses/periodes on the tree it could be
easier to bring them in nodes and override #reduce:.

Don't he?

But for shout I think tokenList it's mush simpler.

Math





	
 p4.vert.ukl.yahoo.com uncompressed Sun Aug 27 15:27:00 GMT 2006 
	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.com 



More information about the Newcompiler mailing list