Refactor parsing and compiler around List type #28
Labels
book-section
Describes a part or chapter of the book that needs to be written
easy
Little experience and/or subject matter knowledge required
parser
Area: lexing and parsing
I originally wrote the parser to generate a nested
Pair
tree data structure, just like Lisp uses cons cells. I did this to simplify bootstrapping into a compiler when I didn't have more complex data structures (like the Array types) available yet.Since this Lisp-style cons cell data structure is archaic, is it worth refactoring the parser and compiler around the
List
type?List
type is anArray<TaggedCellPtr>
so, like most dynamic language arrays is a heterogenous arrayList
type rather thanPair
sThe text was updated successfully, but these errors were encountered: