Anonymous user
Category:Smalltalk: Difference between revisions
m
→Syntax (in Pseudo BNF): formatting
m (→Syntax (in Pseudo BNF): formatting) |
|||
Line 57:
====Syntax (in Pseudo BNF)====
<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")
== Language Semantic ==
|