beanit / asn1bean

ASN1bean (formerly known as jASN1) is a Java ASN.1 BER and DER encoding/decoding library
https://www.beanit.com/asn1/
Apache License 2.0
110 stars 45 forks source link

Profile File Format Specification cannot be parsed without tweaks #9

Closed koh-osug closed 6 years ago

koh-osug commented 6 years ago

This file cannot be parsed:

PEDefinitions V2.1.asn.txt

Are the multi line comments with /* */ are causing problems? Sometimes also comments with -- are continued on a next line directly without any white space before..

koulombus commented 6 years ago

Comments in ASN.1 commence with a pair of adjacent hyphens and end with the next pair of adjacent hyphens or at the end of the line, whichever occurs first.

sfeuerhahn commented 6 years ago

I'm having trouble reproducing your error. I took the PEDefinittions file you posted, removed the ASN.1 value definitions and it compiled correctly.

koh-osug commented 6 years ago

So, only the value definitions must be removed?

sfeuerhahn commented 6 years ago

I guess so. I'll close this issue. If encounter another error with comments we can reopen it.