Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Embarrassing Data Type rule question [solved](Noob)
Embarrassing Data Type rule question [solved] [message #1177610] Fri, 08 November 2013 22:38
Eclipse UserFriend
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: Fri, 08 November 2013 23:15] by Moderator

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


Current Time: Thu Jul 17 10:00:45 EDT 2025

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

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

Back to the top