[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:
parent
d5ccd5b147
commit
9d55588a35
3 changed files with 38 additions and 28 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue