|
|
|
|
|
by kazinator
2453 days ago
|
|
The data has an AST. The AST is made of conses, and atoms. The atoms have a large variety of types. They are not "tokens", but objects. Tokens only exist briefly inside the Lisp reader. 123 and |123| are tokens; one converts to an integer node, one to a symbol node. (1 (2 3)) has an AST which is CONS
/ \
FIXNUM CONS
| / \
1 CONS SYMBOL
/ \ \
FIXNUM CONS NIL
| / \
2 FIXNUM SYMBOL
| |
3 NIL
|
|
(not (eq 'has 'is))
But for an Abstract Syntax Tree for code we have more categories: function, operator, call, control structure, variable, class, ...