Menu

#1 Compiling nested structures

open
nobody
None
5
2008-07-16
2008-07-16
No

The python tool that creates the Java classes doesn't seem to support nested structures like the following:

Foo ::= SEQUENCE {
foo INTEGER,
foobar SEQUENCE {
foobar1 REAL,
foobar2 MyType
}
}

The fault seems to be in the RE_CLASSNAME regular expression, which doesn't match sequences like the previous one.

Is it equivalent, in terms of BER coding, if I substitute the previous sequence with:

FooBar ::= SEQUENCE {
foobar1 REAL,
foobar2 MyType
}
Foo ::= SEQUENCE {
foo INTEGER,
foobar Foobar
}

Or would the BER encoding be incompatible with the decoding based on the first example?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.