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 <[email protected]> To: 'antlr-interest' <[email protected]> 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! List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
