Hello,

FWIW, I'm (mildly) concerned too.  In particular, I'm disappointed to discover 
that in its present form (and using my present caveman-like invocation style), 
ANTLR parses source files so slowly that it's impossible to use directly as a 
validation tool; I would very much like to directly validate the grammar used 
for documentation purposes against the existing sources.  I haven't yet asked 
for help from the ANTLR folks, because I don't yet feel like I've finished due 
diligence on RTFMing ANTLR, which I would prefer to do before dumping the 
problem in their lap.

I have not yet tried ANTLR v4, but I have used ANTLR v3 for a few grammars. From what I have read in "Why do we need ANTLR v4" [1], the new version focuses on ease-of-use rather than performance by accepting "any grammar we care to write" and "pushing all the grammar analysis effort to runtime". It seems to me that even the grammar option bounding the LL-lookahead (k=xxx) does not longer exist in v4. May it be the reason why the parser is so slow?

Have you considered trying v3 instead of v4? It would allow to set the LL-lookahead even per rule basis.

Wojtek

[1] http://www.antlr.org/wiki/pages/viewpage.action?pageId=29130850
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to