]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Move specifier type determination into scanner.
authorNick Bowler <nbowler@draconx.ca>
Fri, 14 Jul 2023 01:25:04 +0000 (21:25 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 14 Jul 2023 02:34:58 +0000 (22:34 -0400)
commit8ef7bb974c538e4802688d45296ee988a6648e02
treea27461ab41dadd50412351ebbe365bf5f39fe1ec
parent3a3760ad26782403f6686183be3faa8b22cf849b
libcdecl: Move specifier type determination into scanner.

Instead of having a parser action for every keyword which sets the
appropriate specifier type, the scanner can just directly assign
the semantic value for the returned specifier tokens.

This reduces the size of the generated parser quite a bit, without
needing any change to the tokens.
src/cdecl-internal.h
src/keywords.gperf
src/parse.y
src/scan.l