|
|
|
|
|
by knuckle_cake
5878 days ago
|
|
I'm writing a monitor for an emulator I'm working on, so your first example is what I am doing. I was wanting for something that lets me add commands, with aliasing, and arguments (maybe with optional regex validation) - e.g. breakpoint add $BEEF, etc. Writing a DSL is one solution and will probably end up being the way I go once I take a second iteration at this. Right now I'm just using regex parsing, but I only have a few commands I need to worry about now. cmdparse is frustratingly close but makes a few assumptions that you want to parse ARGV or something that looks like it. |
|