Re:The Clockwise/Spiral Rule of C declarations
by sugarfactory on Monday October 24, 2016 @09:04AM
(#12778373)
Once I tried to figure out how to parse complex C declarations just by reading the specification (http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf), that is, without consulting guides for layman like this. But I gave up. I looked at what seemed a BNF-like description of the C grammar but I had no idea what it tells about the parsing rules. So I ended up using this guide: http://ieng9.ucsd.edu/~cs30x/rt_lt.rule.html With this I managed to implement an imitation of cdecl.
[ Parent
| on HN ]
There are no comments on this comment yet.