vlm / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
1.04k stars 557 forks source link

could not parser lppe.asn #387

Open lthxxn opened 4 years ago

lthxxn commented 4 years ago

Parser failed when meet the following string: OMA-LPPe-Uri ::= VisibleString (FROM ( "a".."z" | "A".."Z" | "0".."9" | ":" | "/" | "?" | "#" | "[" | "]" | "@" | "!" | "$" | "&" | "'" | "(" | ")" | "*" | "+" | "," | ";" | "=" | "-" | "." | "_" | "~"))

Error message is following: ERROR: Symbol '"' at line 488 is prohibited by ASN.1:1994 and ASN.1:1997

Best Regards

attina commented 10 months ago

The problem is caused by "'". Can workaround this by delete "'" temporarily.

attina commented 10 months ago

Use "\'" instead of "'" also can pass the compile.