Click here to Skip to main content
11,804,008 members (80,189 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VC6 C++
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 4-Jun-12 20:55pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Jijesh Balakrishnan at 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 at 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 at 5-Jun-12 4:21am
thank you for your help

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

  Print Answers RSS
0 OriginalGriff 410
1 CPallini 310
2 Sergey Alexandrovich Kryukov 234
3 CHill60 230
4 Suvendu Shekhar Giri 200
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 5 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100