Re: Simple parser for C/C++





Very interesting, but these do not work well with C++ ?


---
Esa


Neil Madden kirjoitti:
Esa Heikkinen 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.

exec ctags and/or cscope?

-- Neil
.



Relevant Pages

  • Re: Passing literal strings to Tcl_Eval.
    ... the parser is looking for arguments. ... The next character puts ... With Tcl, the options are few in number. ... you don't you probably aren't experimenting enough, ...
    (comp.lang.tcl)
  • Re: C++/Tcl/C++ Interface
    ... The vendor of GL.so don't want to disclose C/C++ API level ... C/C++ level. ... I can use tcl procs to read the file and traverse the graph from tcl shell. ...
    (comp.lang.tcl)
  • Re: C++/Tcl/C++ Interface
    ... The interesting part of the challenge is I don't know C/C++ APIs of ... The vendor of GL.so don't want to disclose C/C++ API level ... I can use tcl procs to read the file and traverse the graph from tcl shell. ... that you won't have access to the inner data structure of the lib; you are restricted to calling the functions provided by the vendor of GL.so ...
    (comp.lang.tcl)
  • Re: Tcl parsing
    ... Tcl isn't the sort of ... > too simple - implying that a parser will give less ... not a level that people usually think about when describing programming ... All languages with ...
    (comp.lang.tcl)
  • Re: Tcl parsing
    ... Tcl isn't the sort of ... > language that Yacc was designed to parse. ... > too simple - implying that a parser will give less ... but I need rooles for every single command. ...
    (comp.lang.tcl)