asn1scc icon indicating copy to clipboard operation
asn1scc copied to clipboard

[V4] Add Python to ProgramingLanguage type

Open lewyg opened this issue 6 years ago • 5 comments

The first step in the implementation of Python code generation. Referenced to #125

lewyg avatar Feb 03 '18 18:02 lewyg

Hi, we are going to integrate your contribution in the future version of ASN1SCC, but this will require some additional refactoring which is not ready yet. We are trying to prioritize the closure of existing bugs and complete the V4 before diving into the introduction of new features.

Could you create a new branch (based on branch ASN1SCC_V4) and put all your code there, so that it is available, and when the main branch is ready it will be merged?

Thank you, and sorry for taking so much time to give feedback - we really appreciate your work on the Python backend, which will give a major added value to the compiler.

maxime-esa avatar Mar 12 '18 08:03 maxime-esa

Hi, thanks for interest ;) I can refactor code in few days. But ASN1SCC_V4 is still in progress, so after some time I will have to refactor all code again. Maybe better idea is to integrate my changes step by step, like it was said before?

lewyg avatar Mar 13 '18 16:03 lewyg

Hi @lewyg, I am very interested in using your codebase to generate Python code from ASN+ACN specs.

I have been looking at the py_lang branch in your fork. Would that be the most up-to-date in terms of Python output support? Is there anywhere I can learn more about your work on this, since it doesn't seem like the upstream merge is going to happen anytime soon?

mcejp avatar Oct 01 '18 12:10 mcejp

@cejpmart Note that one of the reasons we haven't merged this work in (the primary reason being the workload) is that there is already a different way to handle ASN.1 from within Python via ASN1SCC - just read this post to see an example (search for test.py).

This is using another part of TASTE, the Data Modelling Tools - that offer Python bindings via ctypes, as well as other functionalities - like mapping the ASN.1 data into and out of databases (via sqlAlchemy).

Have a look - it may very well cover your Pythonic ASN.1 needs (it does for us in TASTE).

ttsiodras avatar Oct 01 '18 14:10 ttsiodras

@ttsiodras Thanks for your reply, I didn't know that the DMT-generated Python code included functions for ACN encoding.

mcejp avatar Oct 02 '18 13:10 mcejp