Jump to content

Category:Smalltalk: Difference between revisions

m
Line 57:
 
====Syntax (in Pseudo BNF)====
<br>Text in double quotes are lexical tokens.
<br>"[..]" means: optional.
<br>"*" means: repeat (0..n)
<pre>method ::= <methodSpec> <methodBody>
 
<pre>
method ::= <methodSpec> <methodBody>
 
methodSpec ::= <unarySelector>
Line 181 ⟶ 179:
 
byteArrayElement ::= <integerConst> // must be in 0..255
</pre>
 
Notes:
 
<br>(1) typed in from memory. No warranty whatsoever for correctness.
 
(2) some dialects allow eg. "|" , "ˆ" or "#" to be used as message selector or as part of a message selector. For portable code, these should not be used. For details, consult the specific dialect's documentation.
Line 196 ⟶ 195:
 
(7) most dialects allow for multiple precision floats (i.e. single precision, double precision, extendend precision IEEE) to be specified using different expo characters (eg. "1e5" vs. "1f5" vs. "1q5")
</pre>
 
== Language Semantic ==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.