at the top, so a parsed program has one uniform root regardless of language. The convenience builder
ASTContainer
produces it.
▪
children is the list of top-level forms. Most grammars parse a single form (a one-element list), but Lisp reads several top-level s-expressions into several children.
▪
kind is
"String"
because the source is a string. meta holds a
"Source"
position spanning the whole parsed program when the root comes from a real parse, and is an empty
when you build the node by hand.
Examples
(2)
Basic Examples
(1)
A container built literally holds its kind and the list of top-level forms: