[Cuis-dev] extending the syntax for blocks and methods

Mariano Montone marianomontone at gmail.com
Sat Jul 16 07:00:07 PDT 2022


El 15/7/22 a las 15:38, Francisco Garau via Cuis-dev escribió:
>
>
> I think building a separate Parser is a sensible approach -- is there 
> a Smalltalk Parser as a separate package that can be tweaked without 
> affecting the running image?

You can overwrite #compilerClass method for the classes you want the new 
syntax to be available. Point to a new subclass of Compiler. Then 
implement #parserClass in the new Compiler subclass, pointing to a new 
Parser subclass that implements your syntax.

Cheers,

       Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220716/54d9e31c/attachment.htm>


More information about the Cuis-dev mailing list