Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The algorithm is the "spiral rule".

http://c-faq.com/decl/spiral.anderson.html



Thanks, but I actually want the other way around. Instead of parsing an existing C declaration, I want to produce one when given a structured tree representing the C datatype.

I found that to be trickier than it sounds.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: