参照[https://ja.wikipedia.org/wiki/Smalltalk]
| tmp |"変数宣言" tmp := 1. "数値型の定義" tmp := 'moji'. "文字型の定義" tmp := true. "boolean型の定義" tmp := Date Today. "日付型の定義" tmp := Timestamp now. "時間型の定義" tmp := Array with:1 with:2 with:3."Array型の定義" tmp := List new add:1. "List 型の定義" tmp := nil. "UndefinedObject型の定義" ^tmp. "返却値"
int > 0 "条件" ifTrue:[ n = 1 ] "真" ifFalse:[ n = 0 ]."偽"
| sum | sum := 0. 1 to: 10 do:[:each | sum := sum + each]. "1から10までループ"