]> git.draconx.ca Git - cdecl99.git/commitdiff
libcdecl: Factor out open-coded list concatenation.
authorNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 00:28:59 +0000 (20:28 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 00:28:59 +0000 (20:28 -0400)
The parser has two rules which join two lists.  Let's add a helper
to do that instead of duplicating the code for list concatenation.
Furthermore, in both cases one of the lists is known to be nonempty;
the implementation can be slightly simplified with that assumption.


No differences found