asn1c/tests/tests-asn1c-compiler/16-constraint-OK.asn1.-EF

32 lines
710 B
Plaintext
Raw Normal View History

2013-10-17 20:03:36 +00:00
ModuleTestConstraint1 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 16 1 }
2004-06-28 21:13:22 +00:00
DEFINITIONS ::=
BEGIN
2017-09-07 05:15:08 +00:00
Type0 ::= IA5String (((SIZE(1..10)) (FROM("a".."z" | "#"))))
2005-03-20 12:58:00 +00:00
2017-09-07 05:15:08 +00:00
Type6 ::= IA5String ((SIZE(1..10)) (FROM("a".."z" | "#")))
2005-03-20 13:12:58 +00:00
END
2013-10-17 20:03:36 +00:00
ModuleTestConstraint2 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 16 2 }
2005-03-20 13:12:58 +00:00
DEFINITIONS ::=
BEGIN
2017-09-07 05:15:08 +00:00
Type1 ::= IA5String (SIZE(1..10,...)) (FROM("a".."z" | "#",...))
2004-06-28 21:13:22 +00:00
2004-08-18 04:43:24 +00:00
Type2 ::= IA5String (SIZE(MIN..4) | FROM("abc"))
2004-06-28 21:13:22 +00:00
2004-08-18 04:43:24 +00:00
Type3 ::= BMPString (SIZE(1))
2004-06-28 21:13:22 +00:00
Type4 ::= INTEGER (1..MAX)
2004-08-18 04:43:24 +00:00
Type5 ::= BOOLEAN (TRUE | FALSE)
2004-06-28 21:13:22 +00:00
2005-03-20 12:58:00 +00:00
ten INTEGER ::= 10
2004-06-28 21:13:22 +00:00
v1 Type1 ::= "#value with ""double quotes"""
END