9
Dolphin Smalltalk: Language
nSyntax
¨Literal objects
ninteger: 3
ncharacter: $a
nstring: ‘string’
nsymbol: #
narray: #(1 2 3)
ncomment: “comment”
nblock: [ ]
¨Messages
nUnary
nBinary
¨= vs. ==
nKeyword
¨Statements
nTerminated with period.
n^
n:=
ncascades
¨Blocks
nniladic: [ ] value
nmonadic: [ ] value:
ndyadic: [ ] value:value:
¨Control flow
nifTrue: [ ].
nifFalse: [ ].
nifTrue: [ ] ifFalse: [ ].
n[ ] whileTrue.
n[ ] whileTrue: [ ].
n[ ] whileFalse.
n[ ] whileFalse: [ ].
ndo: [ ].
n[ ] repeat.
ntimesRepeat: [ ].
nno switch
¨Exceptions
n[ ] on:do: [ ].
¨Order of evaluation
nLR on demand (UBK?)