Re: Simple parser for C/C++



On Fri, 28 Sep 2007 19:11:35 +0300, Esa Heikkinen
<esa.heikkinen@xxxxxx> wrote:


Hi

How easy would be make simple parser for C/C++ by tcl ?

I would want to make tcl-script, which searchs all functions/methods and
entry/exit points of functions/methods from C/C++-source file.

I think this should be possible, but i don't know how.
Hi Esa,
Michael already directed you to the page on the wiki which is probably
the best starting point for parsing C.

As for C++, there is no such thing as a "simple parser". Think of
classes, function and operator overloading, namespaces and - the most
terrible of all (in terms of parsing) - templates.
Just my 0.02
Best regards
Helmut Giese
.



Relevant Pages

  • Re: Simple parser for C/C++
    ... How easy would be make simple parser for C/C++ by tcl? ... I would want to make tcl-script, which searchs all functions/methods and ... terrible of all (in terms of parsing) - templates. ...
    (comp.lang.tcl)
  • Re: Simple parser for C/C++
    ... How easy would be make simple parser for C/C++ by tcl? ... I would want to make tcl-script, which searchs all functions/methods and ...
    (comp.lang.tcl)
  • Re: Simple parser for C/C++
    ... How easy would be make simple parser for C/C++ by tcl? ... I would want to make tcl-script, which searchs all functions/methods and ...
    (comp.lang.tcl)
  • Re: Simple parser for C/C++
    ... How easy would be make simple parser for C/C++ by tcl? ... I would want to make tcl-script, which searchs all functions/methods and ...
    (comp.lang.tcl)
  • Simple parser for C/C++
    ... How easy would be make simple parser for C/C++ by tcl? ... I would want to make tcl-script, which searchs all functions/methods and ...
    (comp.lang.tcl)