Can this project be used to generate code for other languages? #269
-
|
I'm looking for a good XML schema code generator for Dart. I couldn't find anything promising in the Dart ecosystem, so I searched other languages and found this project. The readme has a nice overview drawing showing this project's pipeline and I've already poked around in the code. Unfortunately, I'm not familiar with Rust, so I can't judge that by looking at the code. That's why I'm asking here for some advice. If it's possible, could someone give me a head start on how to begin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @MBulli, Yes that is possible. As you already know,
I don't know Dart, so I'm not sure if the rust specific Best, Bergmann. |
Beta Was this translation helpful? Give feedback.
Hey @MBulli,
Yes that is possible. As you already know,
xsd-parseruses different pipelines for different steps of the code generation. I see two possible solutions for your problem:Interpreterpipeline: TheMetaTypesstructure. This contains language independent information for the different types defined in a schema. You can then simply put your own code on top of this to generate suitable code for your project.Generatorpipeline, the resultingDataTypesstructure and theRendererpipeline with a customRenderStep. These parts of the whole pipeline are rust specific, aiming for generating Rust modules, so the interface currently only provides methods t…