Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!deccrl!bloom-beacon!eru!hagbard!sunic!sics.se!ifi!nuug!ugle.unit.no!ugle.unit.no!urnes From: urnes@loke.idt.unit.no (Tore Urnes) Newsgroups: comp.lang.c++ Subject: Need lexer for Roskind's Yacc parser Message-ID: Date: 11 Apr 91 10:45:06 GMT Sender: news@ugle.unit.no Distribution: comp Organization: Norwegian Inst. of Tech., Div. of Computer Syst. and Telematics Lines: 29 Hi: I need to parse major league C++ code in order to generate useful input to a tool I have built (an affinity browser picturing relations between C++ objects). I have done some hacking on the lexer Jim Roskind distributes with his parser and I am using the g++ preprosessor to handle compiler directives and comments. However, I do get parsing errors every now and then (say, every 4-500 lines). Inspection of the Yacc generated parser tree reveals that my hacking is to blame :-). Unfortunately, I haven't got time (my affinity browser project is a one student project, 15 hours a week, for 12 weeks, I am a 4th year student) to continue hacking. The C++ parsing is just an "if time allows" activity. Less that 1 month to EXAMS ( :-) )!!! I would be very grateful if someone who has coded a working fullblown lexer (i.e. symbol table with scope info, and corresponding code insertions in the Yacc code) for Roskind's parser, would give me access (e-mail, anonymous ftp) to it. Hope this is not TOO much to ask. Sincerely, Tore Urnes, e-mail: urnes@idt.unit.no -- _____ | _ ,_ _ | | ,_ ,_ _ _ ::: *************************** | | | | |_| | | | | \ |_| |_ ::: Norwegian Institute of Technology ^ `-' ^ `- `--' ^ ^ ^ `- -' ::: urnes@idt.unit.no