From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Keogh, Craig" To: "'T Alexander'" Cc: "'sourcenav@sourceware.cygnus.com'" Subject: RE: Help on Source Navigator parser Date: Thu, 09 Aug 2001 16:56:00 -0000 Message-id: <34168E9E775CD411A4430000F80768621B4434@unclassfs03.rlmsystems.com.au> X-SW-Source: 2001-q3/msg00105.html > what i want to know is > that wether we'll be able to use the parser by itself > to create a database of the cross-refernce and all > without running the snavigator. You can run the C++ parser, cbrowser, from the command line: cbrowser -y files.f -p /bin/more Where files.f is a list of files to parse, which you can generate with ls -1 *.c* > files.f But this won't build you a database. Look at \source\snavigator\hyper\sn.h Write your own functions of the prototypes listed there. Eg: int put_cross_ref ((int type,int scope_type,int scope_lev, char *fnc_cls,char *fnc,char *fnc_arg_types,char *scope,char *what, char *arg_types,char *file,int lineno,int acc)) { cout << type << scope_type << scope_level << fnc_cls << fnc << fnc_arg_types << scope << what << arg_types << file << lineno << acc << endl; } And link cbrowser against your own implemenation. Run it with: cbrowser -y files.f -p /bin/more Of course, I don't recommend doing this. Use a compiler compiler tool, and do it yourself. Craig Keogh