-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
It would be very handy to have a compiler capable of parsing ASN.1 files to PHP classes. And then using those PHP classes to build the requisite ASN.1 data structures to be encoded. Or take an encoded ASN.1 data structure and translate that to the PHP classes that were built.
I also have a need for general ASN.1 parsing in the SNMP library for MIBs to pick apart the generated AST (a subset anyway). This requires a parser based off X.680, and several other components:
- Create a Lexer / Tokenizer for ASN.1 syntax based on X.680
- Create a parser / AST generator from the tokenization
- Create a compiler for translating to / from PHP classes based on the parsed ASN.1.