]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Avoid duplicating keyword strings w/ gperf.
authorNick Bowler <nbowler@draconx.ca>
Tue, 11 Jul 2023 04:57:04 +0000 (00:57 -0400)
committerNick Bowler <nbowler@draconx.ca>
Tue, 11 Jul 2023 05:25:53 +0000 (01:25 -0400)
commitd45087889eac31f237bc9b10bddca7c9d2871296
tree9aeb3797425cb41db48826aa3f74d52d8d763d36
parentec4bdd2e748b84924b0b6bae6c37ff6f0ec8cc6c
libcdecl: Avoid duplicating keyword strings w/ gperf.

The string table generated by gperf is quite redundant: since we already
resolved to the parser token, we can easily get the string from the
parser's token name table.

Unfortunately gperf provides no options to customize the string table
generation to the extent needed, so let's continue our theme of post-
processing everything in awk.
Makefile.am
src/gperf-wordwrap.awk [new file with mode: 0755]
src/keywords.gperf