There are an infinite number of function signatures.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Semantic analysis is minimal at the lexing stage. You don't need to recognize function signatures, only the tokens that make it up. Off the top of my head, I can only think of one place in the lexical analyzer for C where context is potentially important, and that's in header name strings for an include directive. The rules for string contents are different, so knowing that it's a header name provides enough context to apply the different rules.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401