On Wed, Jul 9, 2008 at 12:53 PM, Duane Ellis <[EMAIL PROTECTED]> wrote: > Øyvind > Consider "flash banks 0". > > Øyvind > The output it produces is pretty hellish to parse from Tcl > Øyvind > (or any language really) + if we make that output of that > Øyvind > command part of the API, then changing it becomes > Øyvind > very awkward. > > Ditto for the the at91sam7 - "flash info" output. > > Then why not just change the out put of those commands to something that is > both human and machine readable. > > What is really easy to parse is NAME/VALUE pairs in ASCII text formated like > this:
I want something that does not really require parsing at all. No parsing is better than *any* parsing, no matter how simple. > (3) In the future - and this will happen - we forget something - you can add > any item you want to the list of NVPs returned I don't like "evolving" methods/fn's w/"flexible" parameters or output. Much better to keep the contract as-is and define a new fn/method. That said, if this is the format that you want, then you can trivially write a small proc on top of a tcl fn and return it in that format. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
