[antlr-interest] Optimized code generation

Ben misc7 at emerose.org
Thu Sep 10 05:22:12 PDT 2009


I'm just learning Antlr, but I'll give this question a shot :)

Yes, backtracking decreases performance, often by a lot.  There are other ways of avoiding ambiguity, such as using syntatic/semantic predicates.  Parr's book (_The Definitive ANTLR Reference_) has a few chapters on these.

-- 
Ben

----------------- Original message -----------------
From: Bharath R <r.bharath at huawei.com>
To: 'antlr-interest' <antlr-interest at antlr.org>
Date: Thu, 10 Sep 2009 17:25:16 +0530
Hi All , 
 
Pls let me know what are all the option that I could use , to get the
generated code with more performance. ( Need to be fast in parsing ). 
 
I have enabled " backtracking = true " , will this hits the performance ??? 
Without this option some ambiquity is coming. 
 
Pls help me in providing any better performace tuning option that I could
set for code generation. 
 
Thanx in advance
Bharath R 
 
HUAWEI TECHNOLOGIES CO.,LTD. huawei_logo 


Address: Huawei Industrial Base
Bantian Longgang
Shenzhen 518129, P.R.China
www.huawei.com
----------------------------------------------------------------------------
---------------------------------------------------------
This e-mail and its attachments contain confidential information from
HUAWEI, which 
is intended only for the person or entity whose address is listed above. Any
use of the 
information contained herein in any way (including, but not limited to,
total or partial 
disclosure, reproduction, or dissemination) by persons other than the
intended 
recipient(s) is prohibited. If you receive this e-mail in error, please
notify the sender by 
phone or email immediately and delete it!

 



More information about the antlr-interest mailing list