floitsch 05/15/2025 10:00 AMGood question. It depends a bit on the protocol.
I have been working on a Toit mustache library. If your protocol is structured enough you could just generate code this way.
I don't think there is any Toit AST library otherwise. Could be interesting.
If you are interested in the mustache library ping me, and I will share what I have so far.