FlatBuffers.jl icon indicating copy to clipboard operation
FlatBuffers.jl copied to clipboard

implement Julia "compiler" using JSON schema output from flatc

Open ExpandingMan opened this issue 4 years ago • 1 comments

So, it turns out that flatc has a (seemingly undocumented) option to generate the schema as a JSON. This introduces the possibility of writing a pure Julia compiler for flatbuffer schema using only existing parsing packages. You can see an example JSON schema here. I've not yet validated that it's complete (i.e. the full Julia code can be inferred from the JSON schema only), but so far it looks ok.

If #51 turns out to be a real disaster, I might start working on this.

ExpandingMan avatar May 22 '20 18:05 ExpandingMan

How do you get the offset values needed to seek into the buffer from the JSON schema?

jonalm avatar Dec 19 '21 22:12 jonalm