Skip to main content



      Home
Home » Modeling » TMF (Xtext) » how to enable backtracking
icon5.gif  how to enable backtracking [message #876414] Thu, 24 May 2012 10:47 Go to next message
Eclipse UserFriend
Hi,

How does one enable backtracking in xtext? From what I've researched I uncommented antlr fragment in mwe2 file, that is this:

fragment = parser.antlr.XtextAntlrGeneratorFragment {
options = {
backtrack = true
memoize=true
}
}


However, I still get 'Resolve by left-factoring or using syntactic predicates or using backtrack=true option' errors. Is there something I've overlooked ?

Thanks for any help,
Dav
Re: how to enable backtracking [message #876447 is a reply to message #876414] Thu, 24 May 2012 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi maybe The error message comes from the antlr UI fragment
Re: how to enable backtracking [message #877284 is a reply to message #876414] Sat, 26 May 2012 06:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Actually yes , it is. Clearly I'm missing something obvious, but I'm still not very skilled with xtext. Can you point me where I can find more info on this, or tell me whats wrong ?

Thanks,
Dav
Re: how to enable backtracking [message #877295 is a reply to message #877284] Sat, 26 May 2012 07:00 Go to previous message
Eclipse UserFriend
Hi,

you have to enable backtracking there too

fragment = parser.antlr.XtextAntlrUiGeneratorFragment {
            	options = {
            		backtrack = true
            	}
            }


~Christian

P.S: if you grammar is actually left recusive you have to solve the left recursion.

[Updated on: Sat, 26 May 2012 07:06] by Moderator

Previous Topic:problems with AbstractContentAssistProcessorTest
Next Topic:Auto formater XText
Goto Forum:
  


Current Time: Sun Jul 13 19:46:59 EDT 2025

Powered by FUDForum. Page generated in 0.07263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top