[wadler] Cons has a list of documents in it

I think I want to start thinking about "leftmost" and "rightmost" and
it's just easier and faster if cons has an actual list in it instead
of dotted pairs.
This commit is contained in:
John Doty 2024-09-15 08:12:30 -07:00
parent d5ccd5b147
commit 9d55588a35
3 changed files with 38 additions and 28 deletions

View file

@ -558,8 +558,8 @@ class Harness:
self.format_document(lines, doc.resolve(), indent)
case wadler.Cons():
self.format_document(lines, doc.left, indent)
self.format_document(lines, doc.right, indent)
for child in doc.docs:
self.format_document(lines, child, indent)
case wadler.Marker():
append("Marker")