[self-interest] Another question about Self grammar

Dru Nelson dnelson at redwoodsoft.com
Tue Mar 23 21:16:42 UTC 1999


Ok, time for another simple question about Self grammar
that was probably already asked/answered.

In a Self expression, the use of the parentheses specifies an object,
or a higher precedence expression. However, as mentioned earlier, most
people just parse these as objects. Later in the compiler phase, 
it can be determined that these parenthesized expressions have no
temporaries and are just a single expression.

Example: 

x + ( (bag getItemNamed: 'dog') squared)

This whole line is a single expression.

Is what I am saying correct?

Dru Nelson
Redwood City, California


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/self-interest
Free Web-based e-mail groups by eGroups.com




More information about the Self-interest mailing list