Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Parser C/C++ text file.

Reply
Thread Tools

Parser C/C++ text file.

 
 
Manu
Guest
Posts: n/a
 
      01-02-2006
Hy everyone,
i'd like to know if there's a way to get, given a text file (.cpp), the list
of function whitin the file. I think there are rules to define a char array
as function .. but what are they?

Thanks in advance.


 
Reply With Quote
 
 
 
 
Artie Gold
Guest
Posts: n/a
 
      01-02-2006
Manu wrote:
> Hy everyone,
> i'd like to know if there's a way to get, given a text file (.cpp), the list
> of function whitin the file. I think there are rules to define a char array
> as function .. but what are they?
>
> Thanks in advance.
>
>

Yes. It's called parsing (as alluded to in your title).

What's your question about the ISO standard C language?

--ag

--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com
http://www.cafepress.com/goldsays
"If you have nothing to hide, you're not trying!"
 
Reply With Quote
 
 
 
 
Emmanuel Delahaye
Guest
Posts: n/a
 
      01-02-2006
Manu a écrit :
> i'd like to know if there's a way to get, given a text file (.cpp), the list
> of function whitin the file. I think there are rules to define a char array
> as function .. but what are they?


I'm not sure I have understood your question, but a .cpp is hardly a
C-file, but rather a C++ file...

That said, if you are using a C99 compiler (gcc 3.x for instance), the
__func__ macro defines a string with the name of the current function.

I'm not sure that this is what you was looking for...

--
A+

Emmanuel Delahaye
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text parser (text into sentences) that works with UTF-8 and multiple languages? mike b. Ruby 3 07-30-2007 12:52 PM
import parser does not import parser.py in same dir on win Joel Hedlund Python 2 11-11-2006 03:46 PM
XML Parser VS HTML Parser ZOCOR Java 11 10-05-2004 01:58 PM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger Java 0 06-09-2004 01:26 AM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger XML 0 06-09-2004 01:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57