Find or create unique Symbol entry for str s in symbol table.
(s, symbol_table={})
| 9 | class Symbol(str): pass |
| 10 | |
| 11 | def Sym(s, symbol_table={}): |
| 12 | "Find or create unique Symbol entry for str s in symbol table." |
| 13 | if s not in symbol_table: symbol_table[s] = Symbol(s) |
| 14 | return symbol_table[s] |
| 15 | |
| 16 | _quote, _if, _set, _define, _lambda, _begin, _definemacro, = map(Sym, |
| 17 | "quote if set! define lambda begin define-macro".split()) |