|
|
|
|
|
by crazydiamond
5880 days ago
|
|
Thanks for your reply. I would really appreciate if you could elaborate a bit more on the REPL part. Are you talking of a command line with which to query your own app within the app, as to the state of objects. Is this within the app, or like talking to it on a port and passing commands on a shell. I had been actually thinking on the lines of how emacs can expose its commands -- although i am not an emacs user. I'd need to study that. I am very familiar with various command line parsing libraries, including cmdparse. I did not get your requirement in this context. Thanks for answering. |
|
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.