Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!gatech!bloom-beacon!clyde!concour!marcap From: marcap@concour.CS.Concordia.CA (Marc Pawlowsky) Newsgroups: comp.lang.c Subject: C syntax question Summary: Where is the first executable statement Keywords: C, syntax, compiler Message-ID: <821@clyde.Concordia.CA> Date: 22 May 89 05:14:53 GMT References: <2747@buengc.BU.EDU> <207600022@s.cs.uiuc.edu> Sender: news@Clyde.Concordia.CA Reply-To: marcap@concour.CS.Concordia.CA (Marc Pawlowsky) Organization: Concordia University, Montreal Quebec Lines: 23 I am looking for a public-domain trace utility for C. e.g. say when a statement is about to execute. The normal way of doing this of course is to insert fprintf statements where appropriate. I also want to know which sections of code have or have not been entered. I am constructing my own tool to do this but have run into a problem. How can I tell where the first executable statement is in a complex statement. e.g. .... void foo(int a) { declaration list statement list } How do I know where the statement list begins? In PASCAL it would be after a BEGIN. Is there a quick way of doing this, other than to write the first pass of a compiler?