Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Issue with a keyword interfering in another rule
Issue with a keyword interfering in another rule [message #1785084] Mon, 09 April 2018 09:11 Go to next message
Valentin COLAS is currently offline Valentin COLASFriend
Messages: 2
Registered: April 2018
Junior Member
I have an issue with the following rule :
		'<http' (IDWITHDASH'='ValidString)*  '>' 
	       ('<'(ID|IDWITHDASH) ((ID|IDWITHDASH)'='ValidString)* '/>') *    

There parser expects '<lookup-method' instead of '<'(ID|IDWITHDASH) due to the following rule :

'<lookup-method' (('name='name=ValidString) & ('bean='ref=[Component|ValidString]))(('/>')|('>''</lookup-method>'))	

I don't know how to fix it. I just want the parser to go through the http part without paying attention to what's inside.

So if you have any clue how to fix it, your help is welcome.
Re: Issue with a keyword interfering in another rule [message #1785270 is a reply to message #1785084] Wed, 11 April 2018 19:35 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12388
Registered: July 2009
Senior Member
Sounds like

BTW having < sometimes as part of the keyword and sometimes not might be a bad idea cause the lexer is eager so you might split it up

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Initialization of default values on parsing
Next Topic:Integration with Xbase - Domain model example
Goto Forum:

Current Time: Sun Nov 18 02:13:28 GMT 2018

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

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

Back to the top