Click here to Skip to main content
13,143,628 members (29,435 online)
Rate this:
Please Sign up or sign in to vote.
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 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 5 Jun 2012
Copyright © CodeProject, 1999-2017
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