I’ve replaced diff-lists with append-lists (affectionately known as emerson-lists but I think Guy ended up using “append-list”, so) everywhere in the customization system, and am now looking at the regressions.
Does anyone know, off the top of their head, whether I should do anything with respect to this in tdl.py?
On the one hand, if tdl.py knows what to do with regular lists, it should have no problems with append-lists, since those have the same syntax as regular lists (LIST < >). However I am wondering, perhaps there is something about e.g. RELS geometry that I need to worry about. Now, the change (to append-lists) mostly seems to bring no problems across the system, but I do get some, for instance with this sort of lexical rule in the adnominal possession library:
Original code in the customization system:
Now, here’s what is supposed to come out of it in case of one of the tests (look at the middle):
But here’s what comes out instead (note the .null thing):
Is there anything about TDL add() or merge() methods that I should be looking at here? I’ve been debugging but I am quickly losing track because of their recursive structure, lots and lots of seemingly empty embedded children (representing the parentheses, probably?). I think that a merge function fails at a certain point in tdl.py, with this rule, but I yet don’t know why.