]> git.draconx.ca Git - cdecl99.git/commit
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)
commit032fe50c0297846a8d03eda505c9726f60a46501
tree24c2f9408e973d9c7f9792cef522e18f53b13bf5
parentd0981bca9268f175a22f10b537c0099fb76921fd
libcdecl: Factor out open-coded list concatenation.

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.
src/parse.y