Is there a standard way of documenting a STAF parser? I can see that I can extract the information easily enough, but before I do it my own way, I just though I should check, so I don't reinvent the wheel. What I want to make is something that can dump out a help text like, eg:
INFARES REQUEST RESTYPE <restype string> [RESCLASS <RDBMS | FILE | ...>] [RESNAME <name string>] [RESVERSION <version string>] [TIMEOUT <Number>[s|m|h|d|w]] [LOC <location>] [OS <osname>] [OSVERSION <version string>] [OSBITS <31|32|64>] [DISK <diskspec>] [ROLE <res.role>] [ACCESS <access role>] [SCHEMA <schema>] [INSTANCE <instance name>] [DURATION <time string> | PERSISTENT] [LOCKNAME <string>] LIST RESTYPE <restype string> [RESCLASS <RDBMS | FILE | ...>] [RESNAME <name string>] [RESVERSION <version string>] [LOC <location>] [OS <osname>] [OSVERSION <version string>] [OSBITS <31|32|64>] [DISK <diskspec>] etc It shouldn't be too hard to make, although I am not quite sure how to indicate things like how many times an option can occur in this notation and how they are grouped. /jan ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users