kimgr / asn1ate

A Python library for translating ASN.1 into other forms.
Other
69 stars 41 forks source link

Added ANY type. #9

Closed fzonneveld closed 10 years ago

fzonneveld commented 10 years ago

Just small change to add ANY type

kimgr commented 10 years ago

Nice, thanks!

As far as I can tell from X208, DEFINED BY is only allowed inside a sequence or set type, and I'm always tempted to put that into the grammar.

But judging from the spec, they treat this as some kind of semantic check, since AnyType is specced as ANY | ANY DEFINED BY identifier.

Let me take a closer look at this before I merge it, but it looks nominally good!

fzonneveld commented 10 years ago

My understanding also is that it is purely a semantic check, nothing more than that. Thanks for the quick response.

kimgr commented 10 years ago

Merged with minor cleanup, many thanks!