954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Function Signatures

What are the all possible function signatures of C.

gayansameera
Newbie Poster
7 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

There are an infinite number of function signatures.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 
There are an infinite number of function signatures.


oooopss, :(
In tokenizer I try to identify functions using its signature thats the problem I faced. Are there any solutions to do this task ?

gayansameera
Newbie Poster
7 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

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
Administrator
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.

Thanks dear friend you give me some idea how to do this thanks a lot dude. I will try.

gayansameera
Newbie Poster
7 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You