Author: theraven
Date: Fri Jan 22 15:17:46 2010
New Revision: 5859

URL: http://svn.gna.org/viewcvs/etoile?rev=5859&view=rev
Log:
Support block variables in Smalltalk.  This uses the syntax described in the 
EBNF definition on the Squeak site.  This is quite ugly.  Blocks with locals 
look like this now:

[ :arg1 :arg2 || local1 local2 | statements ]

Note the double-bar between the arguments and the locals.  With no arguments, 
you'd write:


[| local1 local2 | statements ]

It appears that this double bar is needed to make the grammar unambiguous, but 
it's still pretty ugly.


Modified:
    trunk/Etoile/Languages/LanguageKit/CodeGen/CodeGenLexicalScope.cpp
    trunk/Etoile/Languages/Smalltalk/smalltalk.y


_______________________________________________
Etoile-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-cvs

Reply via email to