4.1 Symbols
TBoS p 35, SD SD
A symbol is series of alphanumeric characters plus the characters + ! $ % & * _ ' / . A symbol
cannot begin with number. The exact syntax for symbols is given here.
Symbols are self-evaluating in Shen; the symbol a evaluates to a, abc to abc. Symbols can be derived from
interning suitable strings.
(1-) abc
abc
(2-) abc'
abc'
(3-) (intern "cheese")
cheese |
|