]> git.draconx.ca Git - cdecl99.git/commit
Add support for empty declarators.
authorNick Bowler <nbowler@draconx.ca>
Mon, 4 Jul 2011 22:11:51 +0000 (18:11 -0400)
committerNick Bowler <nbowler@draconx.ca>
Mon, 4 Jul 2011 22:11:51 +0000 (18:11 -0400)
commit0d567b471af91e2627c94ab698a2a6d9597ba868
treef9a7751067ebd7d242f60cf339aa0af55a872e26
parent8f66c0f29d726879468762bd65d1062b6939d2ea
Add support for empty declarators.

This allows the parser to recognize type names which are required for
function prototypes, as well as actual declarations.  This also makes it
easy to let the user ask for an explanation of types.  For instance:

  explain int *(*[])[];

prints

  type array of pointer to array of pointer to int.
src/explain.c
src/parse.y