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:
		'<http' (IDWITHDASH'='ValidString)*  '>' 
	       ('<'(ID|IDWITHDASH) ((ID|IDWITHDASH)'='ValidString)* '/>') *    
	    '</http>'|('/>')
	;


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

LookupMethod:
'<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: 14665
Registered: July 2009
Senior Member
Sounds like https://blogs.itemis.com/en/xtext-hint-identifiers-conflicting-with-keywords

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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Initialization of default values on parsing
Next Topic:Integration with Xbase - Domain model example
Goto Forum:
  


Current Time: Sat Apr 20 01:39:16 GMT 2024

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

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

Back to the top