7:10:57beachscymtym: For Second Climacs, I want the reader to return parse-results, or as I call them in Second Climacs "wad"s. A wad is a nested data structure that contains source positions corresponding to the start and the end of the thing that was read, and also a list of children, which are also wads. And the children are represented as a list of wads in the order that they were read.
7:12:05beachFurthermore, non-expressions are included, so that there are comment wads, etc.
7:12:35beachI need to program Eclector to return wads.
7:13:29beach2. Add the possibility for Eclector to return wads, just the way it can now return CSTs.
7:14:13beachThe thing is complicated by the fact that in Second Climacs I ultimately want CSTs as well.
7:15:03beachSo then, for solution 1 I can convert wads to CSTs. Just drop the non-expressions and apply a similar technique that Eclector itself uses to construct a CST from a bunch of children.
7:15:27beachWith solution 2, there are two sub-options:
7:15:58beach2.1 Use solution 1, but include it in the Eclector repository.
7:16:33beach2.2 Use solution 2, and factor the code so that there is no duplication, i.e. build the CSTs from the wads.