Skip to main content



      Home
Home » Modeling » TMF (Xtext) » xText Defining Sequences
xText Defining Sequences [message #12380] Tue, 22 April 2008 06:31 Go to next message
Eclipse UserFriend
How can I define a sequence of digits?
I tried the rules below but I get an error.

OCTAL_DIGIT : '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7';

OCTAL_INTEGER : '8#' OCTAL_DIGIT ( ( '_' )? OCTAL_DIGIT )*;

2187 ERROR CheckComponent2 - Only one delegating call to another
typerule per alternative is allowed. [no name(xtext::Alternatives)

Cheers

Rob
Re: xText Defining Sequences [message #12410 is a reply to message #12380] Mon, 28 April 2008 02:44 Go to previous message
Eclipse UserFriend
Originally posted by: dennis.huebner.gmail.org

Hi Rob!
Try to change the rule order.

OCTAL_INTEGER : '8#' OCTAL_DIGIT ( ( '_' )? OCTAL_DIGIT )*;
OCTAL_DIGIT : '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7';

Its works for me with a latest oAW4.3.

Regards,
Dennis.

Rob Moloney schrieb:
> How can I define a sequence of digits?
> I tried the rules below but I get an error.
>
> OCTAL_DIGIT : '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7';
>
> OCTAL_INTEGER : '8#' OCTAL_DIGIT ( ( '_' )? OCTAL_DIGIT )*;
>
> 2187 ERROR CheckComponent2 - Only one delegating call to another
> typerule per alternative is allowed. [no name(xtext::Alternatives)
>
> Cheers
>
> Rob
>
Previous Topic:[TCS] referTo by subtype property
Next Topic:Re: [TCS] Problem with serializer 2 [model to text]
Goto Forum:
  


Current Time: Tue May 13 15:21:25 EDT 2025

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

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

Back to the top