Open lithdew opened 3 months ago
That's a great feature request, thanks! What do you think about generating a parseMyProgramInstruction
helper that identifies the instruction first and then switch/cases into the appropriate parse function for that particular instruction? This would only fill the "decode" aspect of the requested codec but would be more idiomatic to the way things are currently generated.
The JavaScript renderer currently renders the following fields and types given a program:
It would be useful to additionally generate a generic instruction codec to decode/encode any of the programs instructions which may work on top of
identifyInstruction
.