C parser yielding syntax tree data structure?

(Jamie Andrews) <andrews@csd.uwo.ca>
8 Apr 2006 17:08:42 -0400

          From comp.compilers

Related articles
C parser yielding syntax tree data structure? andrews@csd.uwo.ca ((Jamie Andrews)) (2006-04-08)
Re: C parser yielding syntax tree data structure? do_not_have@sorry.bitbuck.cmm (Rod Pemberton) (2006-04-09)
Re: C parser yielding syntax tree data structure? tmp123@menta.net (tmp123) (2006-04-09)
Re: C parser yielding syntax tree data structure? muehlenf@sbox.tugraz.at (Arndt Muehlenfeld) (2006-04-12)
Re: C parser yielding syntax tree data structure? idbaxter@semdesigns.com (Ira Baxter) (2006-04-12)
Re: C parser yielding syntax tree data structure? p.black@acm.org (Paul E. Black) (2006-04-14)
Re: C parser yielding syntax tree data structure? scared.of.any@reply.mail (Rod Pemberton) (2006-04-16)
[1 later articles]
| List of all articles for this month |

From: (Jamie Andrews) <andrews@csd.uwo.ca>
Newsgroups: comp.software-eng,comp.compilers,comp.lang.c
Date: 8 Apr 2006 17:08:42 -0400
Organization: Dept. of CS, Univ. of Western Ontario, London, Ont.
Keywords: C, parse, question
Posted-Date: 08 Apr 2006 17:08:42 EDT

          For a research project, we're looking for a reliable parser for C
that will take an ANSI C program and yield a tree representation of
the program (as a Java or C++ object). Of course a grammar e.g. in
jflex/jbison that will yield the same thing is fine too. We have been
able to find some grammars and parsers, of unknown reliability, that
don't yield a syntax tree; we want to avoid starting with a flaky
parser and/or adding the syntax tree code.


          Preferably the tokens in the tree will contain information
on the line number and character number of the token, but if it
is sufficiently easy to add that code, then we can do that too.


          Thanks for any info you can give.


--Jamie. (efil4dreN)


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.