[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


cafeexecparse Source code in cafeexecparse.pro

cafeexecparse

Name
           cafeexecparse
Purpose
           parses a command line, returns a string list which contains
           all items of a command line, usually separated with ",".
Category
           CAFE
SYNTAX:
           execlist=CAFEEXECPARSE(execstr[,separator=separator])
Input Parameters
           execstr   -  string to split into its components. Will be
                        empty after call.
Optional Input Parameters
           separator - character (or string) which separates the
                       different items. Default: ','.
Keyword Parameters
           /keep     - if set do not change (destroy) the input exec
                       string.
Output Parameters
           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.
REMARKS:
           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!!!
Revision History
           $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 ";")
SYNTAX:
 exprlist = expr "," expr  | expr;
 expr     = item
            | "(" exprlist ")"
            | '"' string    '"'
            | "[" exprlist "]";
 item     = item CHAR | EMPTY ;
 string   = ANYNONSTRINGCHAR string | EMPTY;

Last modified by pro2html on 2005 January 04 at 16:27 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms ([email protected])
Updated automatically