]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Combine scanner rules for punctuation.
authorNick Bowler <nbowler@draconx.ca>
Sun, 9 Jul 2023 20:51:29 +0000 (16:51 -0400)
committerNick Bowler <nbowler@draconx.ca>
Mon, 10 Jul 2023 06:01:59 +0000 (02:01 -0400)
commitec4bdd2e748b84924b0b6bae6c37ff6f0ec8cc6c
treee083a3e385a8f6f888bf8820a9b995c2e38cb15e
parentc4d0ba7251867ee9bdb8466357cba5a9fa352b76
libcdecl: Combine scanner rules for punctuation.

Use a single rule to match all punctuation, with a lookup table to
return the correct token.  This gives a small size reduction for
the scanner.
src/scan.l