Erik Moqvist

Results 172 comments of Erik Moqvist

Sorry, I am not interested in doing so at the moment as I prefer spending my time on other projects.

Which version of pyparsing do you have on those systems? asn1tools uses pyparsing to parse asn1-files. My guess is that asn1tools only works with pyparsing version 2.x.y, not 3.m.n.

The latest version, 0.160.0, of asn1tools works with both old and new pyparsing. Support for old pyparsing will be dropped at some point.

I don't quite understand why JER is unpleasant to use. Can you write a short script as an example?

Isn't it possible to do something like this: ```python jer = asn1tools.compile_files('foo.asn', codec='jer') ber = asn1tools.compile_files('foo.asn', codec='ber') decoded = jer.decode('Foo', json.dumps(json5.loads(JSON5)).encode()) encoded = ber.encode('Foo', decoded) ```

The code decoded JER and then encoded BER. Should work. Please supply a script that exemplifies your use case in detail.

Is the example above what you do in your application? Seems a bit odd to have data in JSON and then encode it using JER to make it JSON, which...

Ok, thanks. Then the code below works with mainline asn1tools. I don't think this PR should be merged as it is easy to do as the code below. No need...

Hi! Feel free to fix it. I don't have time to do so.

The [OSS Nokalva playground](https://asn1.io/asn1playground/) gives a compile error: `line 4 (A): A0100E: Duplicate tag in type B: element 'c' (line 3) and element 'd' (line 4).` `asn1tools` should probably give...