(uninteresting) parsing and virtual functions

This is a discussion on (uninteresting) parsing and virtual functions within the A Brief History of Cprogramming.com forums, part of the Community Boards category; So far work on the source file lexer has been proceeding nicely... Most of C is fairly straightfoward to parse. ...

(uninteresting) parsing and virtual functions

So far work on the source file lexer has been proceeding nicely... Most of C is fairly straightfoward to parse. So I'm writing the name mangler, I'm just about done it... when I realize I've forgotten about function pointers. I'm not even sure I remember the correct syntax for using a function pointer, or an array of functions pointer... How should I test for a declaration of a function pointer? Where exactly do they go? You have variables, you have functions, you have pointers.. and you have function pointers. It's like a new category of thingies that doesn't exactly fit under any of the other category, and cannot be treated under any of the other rules. Damn. More work