XTEXT Features with fixed length [message #1415761] |
Wed, 03 September 2014 14:39 |
serhat gezgin 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
|
|
|
Powered by
FUDForum. Page generated in 0.03177 seconds