|XTEXT Features with fixed length [message #1415761]
||Wed, 03 September 2014 14:39
| serhat gezgin
Registered: January 2013
i have commands like (C1, C2);
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?
Powered by FUDForum
. Page generated in 0.02837 seconds