start with write

This commit is contained in:
nora 2022-02-12 22:31:58 +01:00
parent 83778ac2c9
commit cb3710cd3f
6 changed files with 1337 additions and 699 deletions

View file

@ -1,9 +1,11 @@
mod parser;
mod write;
use crate::parser::codegen_parser;
use heck::ToUpperCamelCase;
use std::fs;
use strong_xml::XmlRead;
use crate::write::codegen_write;
#[derive(Debug, XmlRead)]
#[xml(tag = "amqp")]
@ -87,6 +89,7 @@ fn codegen(amqp: &Amqp) {
codegen_domain_defs(amqp);
codegen_class_defs(amqp);
codegen_parser(amqp);
codegen_write(amqp);
}
fn codegen_domain_defs(amqp: &Amqp) {