2
Contributors
4
Replies
6
Views
5 Years
Discussion Span
Last Post by gayansameera
0

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 ?

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.

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.

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.