[antlr-interest] CommonToknStream creation hangs

Jim Idle jimi at temporal-wave.com
Fri Jun 4 10:10:40 PDT 2010


Did you try using the debugger?

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Aravinda Dassanayake
> Sent: Friday, June 04, 2010 5:31 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] CommonToknStream creation hangs
> 
> Hi all,
> 
> I am parsing a file using the following Java syntax.
> 
> ANTLRFileStream afs = new ANTLRFileStream(file.getPath());
> CSLexer lexer = new CSLexer(afs);
> CommonTokenStream tokens = new CommonTokenStream(lexer);
> CSParser parser = new CSParser(tokens);
> 
> However, for some files, the application hangs at the point where it
> has to
> create the 'tokens' object.
> 
> What are the possible reasons for this?
> 
> Regards,
> Aravinda
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address





More information about the antlr-interest mailing list