Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » terminal rule interference (I have a YYYY terminal rule for years interference with INT types)
terminal rule interference [message #767697] Sun, 18 December 2011 13:01 Go to previous message
Pavel  is currently offline Pavel
Messages: 5
Registered: July 2011
Junior Member
Hello,
I created a rule for a year terminal type defined as:
terminal YYYY:
('1'..'2')('0'..'9')('0'..'9')('0'..'9');

However, I've noticed that anywhere I specify an INT value that is set to a number that fits the above pattern, I get an error in the editor.
For example:

DeclareInt:
"Integer" name=ID '=' value=INT

gives an error when I set:
Integer foo = 1900

but it's ok when I set:
Integer foo=22222;

I must not be using the terminal logic correctly but not sure what's the best way around this issue.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Distinguish imported namespaces by file type
Next Topic:Resolving links in files that are not in the Project
Goto Forum:
  


Current Time: Sat May 18 20:31:40 EDT 2013

Powered by FUDForum. Page generated in 0.01635 seconds