[antlr-interest] CommonToknStream creation hangs

Aravinda Dassanayake aravinda777 at gmail.com
Fri Jun 4 05:31:27 PDT 2010


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


More information about the antlr-interest mailing list