open.zone at virgin.net
Sun Jul 8 05:57:33 PDT 2007
What version of ANTLR did you use?. Was it ANTLR v2.7.x or ANTLR v3.x?
Can you post the options you set in your grammar file?
The best way to contact me is via the list/forum. My time is very limited.
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Liviu U
Sent: 08 July 2007 11:05
To: antlr-interest at antlr.org
Subject: [antlr-interest] NoViableAltException
I built a simplistic C# parser that ignores statements blocks and handles
only declarations. The target output language is C#.
When I parse a moderate size file 500K ( the atnlr parser output ;) ) it
takes 5 seconds and a lot of NoViableAltException are raised and handled by
The parsing is successfull, but as we know, exception raising in .NET comes
with a big cost. I think there is a big performance hit in using Exceptions
to handle failures instead of old Winapi style return codes.
Is anything that can be done about it?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest