Subject: | Convert::ASN1 : Parsing problems with ENUMERATED OPTIONAL |
Date: | Tue, 17 Aug 2010 16:44:06 -0700 (PDT) |
To: | bug-Convert-ASN1 [...] rt.cpan.org |
From: | Irfan Ali <aliirfan04 [...] yahoo.com> |
Dear Graham:
I receive a parsing syntax error when I try to read in the following ASN.1
definition with Convert::ASN1
==
Paging ::= SEQUENCE {
pagingRecordList PagingRecordList OPTIONAL,
systemInfoModification ENUMERATED {true(0)} OPTIONAL
}
PagingRecordList ::= INTEGER
==
However, if I make a slight modification and not use the "ENUMERATED OPTIONAL"
bit, the syntax error goes away.
==
Paging ::= SEQUENCE {
pagingRecordList PagingRecordList OPTIONAL,
systemInfoModification Classe OPTIONAL
}
PagingRecordList ::= INTEGER
Classe ::= ENUMERATED {true(0)}
==
Compiles without any syntax error.
Not sure if there is a ASN.1 format error on my side or a bug in CONVERT::ASN1
Regards
Irfan