Click here to Skip to main content
15,921,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i need to identify all the function calls in a c++ file.i have seen that,it is possible with lex and yacc grammar.but i dont know to write appropriate grammar file to identify all the function calls correctly.
how can i move with this?

thank you in advance..
Posted

1 solution

You should know a bit of theory and read some tutorials.
A starting point might be "The LEX & YACC Page"[^].
I found this (available for free) book: "Compiler Construction using Flex and Bison"[^] pretty interesting.
 
Share this answer
 
Comments
Jijesh Balakrishnan 5-Jun-12 3:55am    
ya,i know some theory parts and i have tried to write some grammar.but it is not working correctly
CPallini 5-Jun-12 4:03am    
You may find many examples of grammars on the web.
It is worth noting that identifying C++ function calls is a bit tricky.
Jijesh Balakrishnan 5-Jun-12 4:21am    
okay.
thank you for your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900