Hi Dominic,
Dominic Evans wrote:
> > A quick TTCN-3 query which one of you might be able to help with.
> > Telelogic Tau seems to allow the 'char' type here:
> >
> > const char LF := int2char( 10 ); // line feed, '\n'
> > const char CR := int2char( 13 ); // carriage return, '\r'
> >
> > But to parse successfully with TRex I found I needed to change char ->
> > byte. Is this due to an extension to the TTCN-3 grammar implemented by
> > Telelogic that automatically typedefs char to byte or am I missing
> > something here?
char is not a built-in type according to the specification. in fact,
char seems to be a predefined function which is used in conjunction with
universal charstrings to specify char quadruples. i don't think its a
good idea to use it as an alias for byte.
--
Benjamin Zeiss