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: 12237
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
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: Mon Sep 24 15:54:14 GMT 2018

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

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

Back to the top