Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

[Feature Request] Separate format AST for code generation #36

Open
ma2bd opened this issue Aug 6, 2020 · 0 comments
Open

[Feature Request] Separate format AST for code generation #36

ma2bd opened this issue Aug 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ma2bd
Copy link
Contributor

ma2bd commented Aug 6, 2020

🚀 Feature Request

Motivation

Currently, we use a YAML serialization of the Format definitions provided by serde-reflection.

  • (minor) The AST of serde-reflection contain temporary variables that should stay internal to serde-reflection
  • Code generation supports an increasing number of features and options (such as comments and external definitions) that would be better included in a richer format AST.
  • In general, we need to think about syntax, modularity, namespacing in a future "IDL".

Pitch

  • Create a new module format in serde-generate that extends the one in serde-reflection.
  • Create a converter from serde-reflection's AST that can incorporate new information such as comments and external definitions (aka imports).
  • Design the new enriched AST with a future, possible syntax in mind (parsing and pretty-printing)
@ma2bd ma2bd added the enhancement New feature or request label Aug 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant