[antlr-interest] Antlr parse cannot parse the file completly

Jim Idle jimi at temporal-wave.com
Thu Oct 11 09:06:41 PDT 2007


Either your parser is bombing out early or some construct is lacking within
it and it is just stopping at some point because of this. For a start, make
sure that you have a rule that looks for EOF as the last token, as this
might help you see why it is stopping early. After that, if cannot debug it
in ANTLRWorks, then you need to debug it in the target language (I am
presuming Java here as you don’t say, and Netbeans does a decent job if so).

 

Jim

 

From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of amol Bhagavat
Sent: Thursday, October 11, 2007 12:55 AM
To: antlr
Subject: [antlr-interest] Antlr parse cannot parse the file completly

 

Hi,

 

Need your help.

 

With the help of ANTLR i generated lexer & parser from the grammar . The
grammer i developed for my requirement is to trace out indirect function
calls like function pointers.

 

My project directory contains 500+ files.I give one file at a time to the
parser.

But it seems it does not parse the file completely... i have put some
information below about the lines it lefts out.

 

FileName         Detects Upto Line       Last Line in the file
Difference

file1                 20997                        21415
418

file2                 15047                        15672
625

file3                 8187                          8187
0

file4                 430                           450
20

file5                18870                        18920
50

file6                7957                          7988
31

 

 

I tried to use the java command like this

java -Xmx1024m Main doutput.txt>goutput.txt

 

(The doutput contains the file paths & goutput contains the parsed data.)

But still it same.

Pls let me know am i doing mistake anywhere or some limitation??

 

Many Thanks..

 

 

file1 

  

   _____  

Yahoo! Answers - Get better answers from someone who knows. HYPERLINK
"http://uk.answers.yahoo.com/;_ylc=X3oDMTEydmViNG02BF9TAzIxMTQ3MTcxOTAEc2VjA
21haWwEc2xrA3RhZ2xpbmU"Try it now.

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007
5:11 PM


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007
5:11 PM
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071011/cd4ef22a/attachment.html 


More information about the antlr-interest mailing list