Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XTEXT Features with fixed length
XTEXT Features with fixed length [message #1415761] Wed, 03 September 2014 14:39
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
Registered: January 2013
Location: Izmir
Senior Member
Hi all,

i have commands like (C1, C2);

C1=FT24DW9.2FORTIS20090430092649002812002@00000DR01:3F:46:02
C2=FT24DW9  BARB  20090430092649002812002@00000DR01:3F:34:02


first 9 character as institution id
after 6 character as institution name
and going as like this.

there are some issues first;

max length for id is 9 character. If less than 9 character i want just not empty characters as id. (6 or 5 or ...)
"FT24DW9.2" for first Command (C1) and "FT24DW9" for second command (C2)

I need to generate parser for this command structure with xtext. But i don't know how can i write its grammar can anyone help me?

Regards
Previous Topic:Read Program From Memory
Next Topic:Headless Xcore generation with edit plug-in
Goto Forum:
  


Current Time: Fri Apr 26 09:54:06 GMT 2024

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

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

Back to the top