asn1bean icon indicating copy to clipboard operation
asn1bean copied to clipboard

INTEGER (value OR range) breaks

Open Visne opened this issue 6 years ago • 3 comments

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 avatar Jul 30 '19 05:07 Visne

(1..3|5..7)

also gives an error.

Visne avatar Jul 30 '19 05:07 Visne

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

regis-leray avatar Dec 10 '19 19:12 regis-leray

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

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

saumilsdk avatar May 19 '20 11:05 saumilsdk