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

INTEGER (value OR range) breaks #27

Open
Visne opened this issue Jul 30, 2019 · 3 comments
Open

INTEGER (value OR range) breaks #27

Visne opened this issue Jul 30, 2019 · 3 comments

Comments

@Visne
Copy link

Visne commented Jul 30, 2019

This snippet gives an error:

DayOfMonth ::= INTEGER (-1|1..31)

This is the error:

line 910:27: expecting R_PAREN, found '|'
line 910:28: expecting "END", found '1'
line 912:11: unexpected token: ::=

(-1|1) for example does work, while (1..31|-1) still gives an error.

@Visne
Copy link
Author

Visne commented Jul 30, 2019

(1..3|5..7)

also gives an error.

@regis-leray
Copy link

regis-leray commented Dec 10, 2019

same problem

Parsing "S1AP-IEs.asn"
line 549:46: expecting R_PAREN, found ','
line 549:51: expecting "END", found ')'
line 551:8: unexpected token: ::=
line 1504:1: expecting "DEFINITIONS", found 'null'

here the line

EncryptionAlgorithms ::= BIT STRING (SIZE (16,...))

if i changed the line with

EncryptionAlgorithms ::= BIT STRING (SIZE(0..16,...))

everything works

with jasn 1.11.2

@saumilsdk
Copy link

@regis-leray I am getting expecting ASSIGN_OP, found '.' error for the line:

Reg-ComputedLane DSRC.REG-EXT-ID-AND-TYPE ::= { ... }

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