Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Concatenating templates of string and list types

Concatenating templates of string and list types 10 Feb 2011 14:30 #7738

Hello,
I detected that the BNF presented in version 4.2.1 of the TTCN-3 Spec does not
allow the concatenation of string and list types. Thus I searched for CRs
concerning this issue. Doing so I worked my way through
CR5513 and CR5809 each of it covering a part of the problem.
With the BNF change proposed in CR5513 string concatenation seems to be possible
(beside some unclarities which I described in my previous email to this list:
"concerning CR5513"). For this the SimpleSpec rule has been adapted.

Nevertheless I was not able to find a possibility to concatenate list types.
Starting with "{" after the assignment symbol will trigger the
ArrayValueOrAttrib production to be entered. From this production I see no
possibility to continue the expression after the closing "}" with an "&".
101. TemplateBody ::= (SimpleSpec | FieldSpecList |
*ArrayValueOrAttrib)* [ExtraMatchingAttributes]

i.e. following template def will produce a syntax error:
template RecofChar t_MyRecofChar := {"ABC"} & {"D", "EF"};

Could anyone help me with this issue?

BR.,

Uwe Truetsch
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin