Category:Smalltalk: Difference between revisions

Content added Content deleted
Line 34: Line 34:


=== Grammar ===
=== Grammar ===
This is an informal description (1); a formal (and correct) description is found eg. in the ANSI spec.
This is more of an informal description (1); a formal (and correct) description is found eg. in the ANSI spec. or via the link at the right side.


Note: typical Smalltalk systems do not compile source code from files, but instead have an IDE embedded (i.e. emphasis on "integrated") and provide browsers and other tools to manipulate source code in the running system.
Note: typical Smalltalk systems do not compile source code from files, but instead have an IDE embedded (i.e. emphasis on "integrated") and provide browsers and other tools to manipulate source code in the running system.
Line 62: Line 62:
<pre> "self" pseudo variable (receiver of current message)
<pre> "self" pseudo variable (receiver of current message)
"super" pseudo variable (for super sends)
"super" pseudo variable (for super sends)
"thisContext" current continuation (stack frame)</pre>
"thisContext" current continuation (stack frame)
"nil" refers to the singleton instance of UndefinedObject
"true" singleton instance of True class
"false" singleton instance of False class</pre>


====Syntax (in Pseudo BNF)====
====Syntax (in Pseudo BNF)====