beanit / asn1bean

ASN1bean (formerly known as jASN1) is a Java ASN.1 BER and DER encoding/decoding library
https://www.beanit.com/asn1/
Apache License 2.0
110 stars 45 forks source link

Error in enum filtering #35

Open HeeroYui opened 3 years ago

HeeroYui commented 3 years ago

the code:

Distance::= SEQUENCE {
    value   INTEGER(1..16384),
    unit    RSCUnit (2..4|6..8)
}

does not work. does not supported the |

with RSCUnit:

RSCUnit::= INTEGER {
    kmperh              (0),
    milesperh           (1),
    kilometer           (2),
    meter               (3),
    decimeter           (4),
    centimeter          (5),
    mile                (6),
    yard                (7),
    foot                (8),
    minutesOfTime       (9),
    tonnes              (10),
    hundredkg           (11),
    pound               (12), 
    rateOfIncline       (13)
    -- other value reserved for future use
    } (0..15)