Skip to main content



      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 05:11 Go to next message
Eclipse UserFriend
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 15:35 Go to previous message
Eclipse UserFriend
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
Previous Topic:Initialization of default values on parsing
Next Topic:Integration with Xbase - Domain model example
Goto Forum:
  


Current Time: Thu Jun 19 13:03:21 EDT 2025

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

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

Back to the top