Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Embarrassing Data Type rule question [solved](Noob)
Embarrassing Data Type rule question [solved] [message #1177610] Sat, 09 November 2013 03:38
Gary Worsham is currently offline Gary WorshamFriend
Messages: 176
Registered: September 2013
Senior Member
OK a fully qualified name rule looks like this:

ID ('.' ID)*


I am trying to parse binary values in the format:

%10001001_1001000_00000001


for which I devised the data type rule:

('%' INT) ('_' INT)*


However, this seems to stop parsing as soon as it hits the first underscore. What am I doing wrong? Embarrassed

Edit: when I hover the mouse over the last part of the value, I get a popup indicating that it thinks it is a "Label", which I have defined as:

Label:
	name = ID ':'
;


Solved

It figures that as soon as I posted this I would figure it out.

This rule works:

('%' INT) (ID) *


Given I have to figure it out in the validator anyway I don't suppose it's a big deal.

[Updated on: Sat, 09 November 2013 04:15]

Report message to a moderator

Previous Topic:Two DSLs in one Eclipse project
Next Topic:Editor cannot be initialized/Unresolved proxy
Goto Forum:
  


Current Time: Fri Nov 27 16:53:01 GMT 2020

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

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

Back to the top