Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
cafeexecparse
parses a command line, returns a string list which contains all items of a command line, usually separated with ",".
CAFE
execlist=CAFEEXECPARSE(execstr[,separator=separator])
execstr - string to split into its components. Will be empty after call.
separator - character (or string) which separates the different items. Default: ','.
/keep - if set do not change (destroy) the input exec string.
A exec string list of items which are logically separated (usually via "," as the IDL command line syntax). Thus this function works like STRSPLIT(execstr,",") but parentheses and string marks are acknowledged.
This procedure is called recursively and gets tokens from str which will change by subtracting the model tokens (models, operators etc). THE execstr WILL BE EMPTY AFTER CALLING THIS FUNCTION!!!
$Id: cafeexecparse.pro,v 1.7 2005/01/04 10:56:05 goehler Exp $ $Log: cafeexecparse.pro,v $ Revision 1.7 2005/01/04 10:56:05 goehler fix: make shure all (internal) routines are properly documented Revision 1.6 2004/06/21 17:22:33 goehler fix: do not force all quotings to '' but keep proper use of "" Revision 1.5 2004/06/14 17:36:01 goehler fix: proper quoting using '' instead "" Revision 1.4 2003/10/04 23:38:49 goehler /keep keyword to not destroy input string Revision 1.3 2003/05/15 15:50:32 goehler trim string when performing %expr% expansion Revision 1.2 2003/05/13 08:15:54 goehler added %expression% expansion Revision 1.1 2003/02/17 17:26:09 goehler Change: now really parsing the input line (avoid ";")
exprlist = expr "," expr | expr; expr = item | "(" exprlist ")" | '"' string '"' | "[" exprlist "]"; item = item CHAR | EMPTY ; string = ANYNONSTRINGCHAR string | EMPTY;
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]