Kenneth Lundin wrote:
> 
> Hi,
> 
> Some compilers and syntax checkers seems to approve this way of writing
> contraints:
> 
> S ::= IA5String (SIZE (1..128)) (FROM ("0123456789#*,"))
> 
> But I cannot understand (at least not from X.680 1997) why it is
> allowed.

It is allowed because of the two productions:

In chapter 16.1 use third alternative of:
Type ::= BuiltinType | ReferencedType | ConstrainedType

In chapter 44.1 use first alternative of:
ConstrainedType ::= Type Constraint | TypeWithConstraint

this gives you the possibility to construct:

Type Constraint Constraint Constraint etc.

Best regards
Egon Andersen

-- 
* Talura ApS      * Phone: +45 43 52 50 00 *
* Baldershøj 24 B * mailto:[EMAIL PROTECTED]  *
* DK-2635  Ishøj  * http://www.talura.dk   *

Reply via email to