-
Notifications
You must be signed in to change notification settings - Fork 41
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
multi-module asn files don't work #44
Comments
It could be that dependencies are not wired between modules -- I have quite elaborate logic in place to detect dependencies and generate assignments in dependency order, not sure if this carries over to multiple modules. Also not sure how hard it would be to make that happen. |
Wouldn't the dependencies be handled at the semantic level? The parse tree doesn't even have these modules. |
Yes, at the semantic level. Oh, now I see you say PDU-definitions disappears from the parse tree... I think that might be because |
Attached is a minimal test case for multi-modules with a dependency. The result is actually different than what I see with the rrc.asn. In this case the parse sees both modules. It fails on resolving the cross module depenency though:
outputs:
So I think this may be two different problems - first the parsing problem, second the inter-module hookup. |
Thanks for the contained repro. I seem to recall this PR added support for emitting modules to individual files, maybe that would help here? Looks like there's a |
This turned out to be caused by a bug in the grammar. which caused the rest of the module to be consumed by the |
I think is still seem to occur on on cloned tree (asn1ate v.0.6.1.dev0). Is it checked in yet ? |
No, I don't think I ever got around to solving this entirely. It was harder than I thought, and I ran out of time. |
I've been trying to get asn1ate to digest the 3GPP RRC protocol, and I've had some success with taking snippets out and processing them individually. However the parser chokes on the whole thing:
The reason is that SystemInformation-BCH is defined in the PDU-definitions module, which gets completely dropped by the parser (confirmed by running test.py --parse, I won't paste it here).
The text was updated successfully, but these errors were encountered: