Skip to content

Rework the generator#4

Open
theothornhill wants to merge 1 commit intomainfrom
rework-gen
Open

Rework the generator#4
theothornhill wants to merge 1 commit intomainfrom
rework-gen

Conversation

@theothornhill
Copy link
Owner

This is a major rework of the code generation algorithm that is closer to the avro spec.

I've made some assumptions:

  1. We expect one .avsc to generate one .zig. This means we assume the schema itself is self-sufficient, defining all related structs and namespaces.

  2. We make things easier by inlining structs. Rather than keeping track and adding references, we rely on type equalities and the zig compiler here.

This is a major rework of the code generation algorithm that is closer to the
avro spec.

I've made some assumptions:

1. We expect *one* `.avsc` to generate *one* `.zig`. This means we assume the
schema itself is self-sufficient, defining all related structs and namespaces.

2. We make things easier by inlining structs. Rather than keeping track and
adding references, we rely on type equalities and the zig compiler here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant