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

can not compile 36.331.f30.asn #317

Open
yldiscover opened this issue Dec 28, 2018 · 5 comments
Open

can not compile 36.331.f30.asn #317

yldiscover opened this issue Dec 28, 2018 · 5 comments

Comments

@yldiscover
Copy link

yldiscover commented Dec 28, 2018

asn1c 0.9.29: can not compile 3gpp TS 36.331.f30.asn, while it can compile 36.331.f21.asn.

error message:
ASN.1 grammar parse error near 36331.f30.asn:16922 (token "[["): syntax error, unexpected TOK_VBracketLeft

content is:
RLC-Config-NB-r13 ::= CHOICE {
am SEQUENCE {
ul-AM-RLC-r13 UL-AM-RLC-NB-r13,
dl-AM-RLC-r13 DL-AM-RLC-NB-r13
},
...,
[[ um-Bi-Directional-r15 NULL, -- <-- New at 36.331.f30
um-Uni-Directional-UL-r15 NULL,
um-Uni-Directional-DL-r15 NULL
]]
}

@yldiscover yldiscover changed the title can not compile 36.331.f39.asn can not compile 36.331.f30.asn Dec 28, 2018
@brchiu
Copy link
Contributor

brchiu commented Feb 10, 2019

@And2000, you might have a trial with #238 which enables asn1c to handle extension group (that is what [[ ... ]] stands for) at least for PER case.

@yldiscover
Copy link
Author

yldiscover commented Feb 11, 2019

@brchiu , I have try "3cd36647343fa43a0ea2e322698cf52312905c23", and have the same error message:
ASN.1 grammar parse error near 36331.f30.asn:16922 (token "[["): syntax error, unexpected TOK_VBracketLeft
Cannot parse "36331.f30.asn"

@brchiu
Copy link
Contributor

brchiu commented Feb 11, 2019

@And2000, you should use the last commit of #238, i.e. 32a585b

@yldiscover
Copy link
Author

@brchiu I use the last commit of #238, i.e. [32a585b] to test, and it works, thanks!

But when I used this asn1c to compile another asn, i.e. 38331.asn, it gave these warnings, while still generated the C files.
Could you tell me what happened?

WARNING: Parameterized type LocationMeasurementInfo expected for LocationMeasurementInfo at line 261 in 38331.asn
WARNING: Parameterized type LocationMeasurementInfo expected for LocationMeasurementInfo at line 261 in 38331.asn

@sandman
Copy link

sandman commented Apr 27, 2020

Does this also work for U-PER ? I'm getting the same error with a different standard's ASN1 spec..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants