librasn / compiler

An ASN1 compiler producing Rust bindings for the rasn framework
Other
10 stars 7 forks source link

imports part parsing error #4

Closed yorkz1994 closed 5 months ago

yorkz1994 commented 5 months ago

Hi,

I am trying the online tool https://librasn.github.io/, but got an error.

It seems that it does not support multiple FROM in IMPORTS like below:

IMPORTS

    Criticality,
    Presence,
    PrivateIE-ID,
    ProtocolExtensionID,
    ProtocolIE-ID
FROM NGAP-CommonDataTypes

    maxPrivateIEs,
    maxProtocolExtensions,
    maxProtocolIEs
FROM NGAP-Constants;

If I remove the first FROM, then there is no error. Sample ASN file attached. ngap_container.zip

6d7a commented 5 months ago

Thanks for your issue and the example module. #5 fixes the particular issue with imports that you encountered, so I'll close this here and will update librasn.github.io in the next days. However, I saw that the NGAP protocol you were trying to compile needs some features that are not yet covered by the compiler. I'll see what I can do, though. Would be cool to generate a working NGAP representation.

yorkz1994 commented 5 months ago

Thanks for the quick fix. The file I attached is only one part of NGAP just used for this issue. I attach whole NGAP files for your reference.

It will be a great achievement if you can make it work. ngap_asn.zip