Closed merlindru closed 1 year ago
@merlindru Thanks for the report!
It's obviously a lot worse for readability but I've written a short test demonstrating that the other way of formatting arrays, array[subtype]
does support nesting, e.g. array[array[array[byte]]] bytes;
; this could be used as a workaround for now, although it should be a fairly quick thing to fix.
Correction; that will enable parsing to succeed but there's a code generation bug that needs to be addressed yet.
This might be a little tough to solve/the generated code could change a lot if an infinite amount of nesting is allowed.
The TypeScript version of bebop-tools compiles
byte[][][]
in my .bop toArray<Array<Uint8Array>>
.And thank you for maintaining this lib!! 😄