Integrated the Uxntal opcode reference into uxn.wasm. Now every opcode implementation has documentation and examples. https://github.com/remko/uxn.wasm/blob/main/src/uxn.wat #uxn
Integrated the Uxntal opcode reference into uxn.wasm. Now every opcode implementation has documentation and examples. https://github.com/remko/uxn.wasm/blob/main/src/uxn.wat #uxn 3 comments
@neauoire No, I don't think there is much point in the wasm context (there's no repl, and it's very low-level). At best, you could put it in DWARF debug info so you can see it in your browser debug console while stepping. I could use the same script to dump the documentation in a machine-readable form (e.g. a JSON) instead of dumping it in comments, though, so if you ever want to integrate this in a repl ... |
@remko That's really nice, is there a way to query the documentation in wasm the same way you would in CL?