Click here to Skip to main content
11,920,772 members (60,319 online)
Rate this:
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 21: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 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
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 548
1 Dave Kreskowiak 245
2 phil.o 170
3 KrunalRohit 134
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,815
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web04 | 2.8.151120.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