4 ms·
Inconceivable! Not really if you've ever had to work with ASN.1... (shudder)
by moe 12y ago
Inconceivable!
Not really if you've ever had to work with ASN.1... (shudder)
- alricb 12y agoNow now, there's an LL(1) parser for ASN.1, and it's easily found in the following reference: Fouquart (P.), Dubuisson (O.) and Duwez (F.). - Une analyse syntaxique d'ASN.1:1994. - Internal Report RP/LAA/EIA/83, France Télécom R&D, March 1996. Only in French
- dfox 12y agoIn the first place, LL(1) parser for BER/DER is mostly trivial exercise, although somewhat tedious. Problem with ASN.1 is not with the specification itself but mostly in the fact that many people want to parse BER/DER with code that directly populates some application-specific data structure and depends on ASN.1 syntax of what they expect to parse. With that you invariably get very complex interface between parser library and application where both components have to handle various special cases correctly (to the point that the whole thing is not even leaky abstraction, because it almost isn't abstraction at all).
- deleted 12y ago[deleted]