Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler Codegen API #103

Closed
XAMPPRocky opened this issue May 23, 2022 · 2 comments
Closed

Compiler Codegen API #103

XAMPPRocky opened this issue May 23, 2022 · 2 comments
Labels
area/compiler Related to the X.680 notation compiler. help wanted Extra attention is needed kind/enhancement New feature or request

Comments

@XAMPPRocky
Copy link
Collaborator

Similar to #101 ideally we’d have a public codegen API that allows the compiler to generate languages other than Rust, and we’d have an API for generating ASN.1 notation back from Rust code so that compiler can be integrated with the derive macros to enable generating ASN.1 modules from derived code.

@XAMPPRocky XAMPPRocky added kind/enhancement New feature or request help wanted Extra attention is needed area/compiler Related to the X.680 notation compiler. labels May 23, 2022
@jsatchell
Copy link
Contributor

There is very limited compiler called asn1ate that generates python bindings for the pyasn1 library. See https://github.com/kimgr/asn1ate. This has ambitions to act as a more general purpose code generator.

There is a tool called mib2c, which is Perl script that ships as part of the net-snmp package, and takes a configuration file that allows it to generate a variety of outputs, not just C - I have used it to generate python. I realize that MIBs are not the same as ASN1, but there is a lot of overlap in functionality.

It is possible that there are some common abstractions that can be seen across these other projects.

@XAMPPRocky
Copy link
Collaborator Author

There is now a compiler available as a separate repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compiler Related to the X.680 notation compiler. help wanted Extra attention is needed kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants