Author Topic: C/C++ code parser  (Read 4369 times)

Offline sigzegv

  • Single posting newcomer
  • *
  • Posts: 4
C/C++ code parser
« on: January 12, 2010, 06:43:50 pm »
Hi,

I was wondering which library is used to parse the c++ code in the symbol browser ? ( or is it a home made lib ? )

I am interested in learning C++'s parsing process.

Regards

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: C/C++ code parser
« Reply #1 on: January 12, 2010, 07:09:29 pm »
Home made 100%, the code is in src/plugins/codecompletion/ in svn.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: C/C++ code parser
« Reply #2 on: January 13, 2010, 01:02:47 am »
Also, I have write some document here Code Completion Design - CodeBlocks about the Code Completion code. You can read it.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.