]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Combine tag/typedef identifier rules.
authorNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 01:25:09 +0000 (21:25 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 01:25:09 +0000 (21:25 -0400)
commita8753bb69c0455ae59fd258aad988e9613f76330
tree845d6ea6bccdadf7ba2cdaaaf0cc9bc867bfbf7b
parent28f34e6425c63edd0db0e20effda20e1e71ba193
libcdecl: Combine tag/typedef identifier rules.

There are actually no conflicts to add an empty production alongside
the rule for "struct", "union" and "enum", which allows the subsequent
reductions for "tag identifier" and "[nothing] identifier" to be done
with just one rule.

This replaces a relatively large action from the eliminated rule with
a very simple one.
src/parse.y