Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » editing Hex Numbers fail in some cases
editing Hex Numbers fail in some cases [message #1814939] Mon, 23 September 2019 09:02 Go to next message
Markus Häge is currently offline Markus HägeFriend
Messages: 56
Registered: August 2018
Member
Hello,

I tested my grammar with some hex numbers and the editor doesn't complain with 0x00 0x06 to 0xff but with 0x01 to 0x05.
When i reduce it to a simple grammar it works but in the complete grammar not.
I get with EVAL CHANNEL 0x05
mismatched input '0x05' expecting RULE_BIT8HEX
That's weard.
Here's the download link for the complete grammar.

https://we.tl/t-8BVX3fKLLj

I tried with 32 Bit Hex Values and it works, so far i have the error just with 8Bit.
I use Eclipse Photon.


Re: editing Hex Numbers fail in some cases [message #1814971 is a reply to message #1814939] Mon, 23 September 2019 15:02 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Looks like a conflict with the DACNUMBER rule. You reserved the tokens 0x01 to 0x05 there.
Re: editing Hex Numbers fail in some cases [message #1815007 is a reply to message #1814971] Tue, 24 September 2019 07:00 Go to previous message
Markus Häge is currently offline Markus HägeFriend
Messages: 56
Registered: August 2018
Member
Hi,
thanks, that was the problem: I found in https://blogs.itemis.com/en/xtext-hint-identifiers-conflicting-with-keywords a solution

Greets
MH
Previous Topic:Outline view is blank for remote file
Next Topic:Anyone interested in helping me for pay?
Goto Forum:
  


Current Time: Thu Apr 18 16:01:26 GMT 2024

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

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

Back to the top