Ticket #768: started.patch
File started.patch, 3.1 KB (added by westram, 7 years ago) |
---|
-
ARBDB/adlang1.cxx
314 314 * 315 315 * 3. operator(x, y) 316 316 * 317 * @@@ this decription does not match behavior! 318 * @@@ check description in helpfile as well 317 * The operator is applied to the arguments. 318 * If an argument is a command (starts with one of "|:/"), 319 * it will get executed on inputstream and the result will be used. 319 320 * 320 * Inputstreams will be ignored and the operator is applied321 * to the arguments322 *323 321 * Example : a;b | plus(c,d) 324 322 * Result : c+d 325 323 */ … … 354 352 355 353 case 2: 356 354 for (int i = 0; i<args->input.size(); ++i) { 355 // @@@ need a getter method for params (pass number of param + number of input-stream (or -1 to use "")) 357 356 char *result1 = args->get_callEnv().interpret_subcommand(args->input.get(i), args->get_param(0)); // @@@ EVALUATED_PARAM (#768) 358 357 if (!result1) error = GB_await_error(); 359 358 else { -
HELP_SOURCE/oldhelp/aci.hlp
95 95 Multiple parameters have to be separated by ',' or ';'. 96 96 97 97 There are two distinct ways to specify such a parameter: 98 - unquoted99 98 99 - unquoted 100 100 101 Unquoted parameters are taken as specified, despite the following exceptions: 101 102 - ',;"|\)' need to be escaped by prefixing one '\' 102 103 - spaces will get removed if unprefixed by '\' 103 104 104 - quoted105 - quoted 105 106 106 107 Quoted parameters begin and end with a '"'. You can use any character, 107 108 but you need to escape '\' and '"' by preceeding a '\'. … … 109 110 Example: 'remove("\"")' will remove all double quotes from input. 110 111 'remove("\\")' will remove all backslashes from input. 111 112 112 [@@@ behavior currently not strictly implemented] 113 If the first character of a parameter is ':', '|' or '/' the value of the 114 parameter is interpreted as SRT, ACI or REG expression and will be 115 applied (to an empty input string) and its result will be used as the actual parameter. 113 116 114 117 SECTION COMMANDLIST 115 118 … … 302 305 - has 1 argument, it accepts one to many input streams. The operator 303 306 is applied to each input stream together with the argument. 304 307 For each input stream one output stream is generated. 305 - has 2 arguments, it is applied to these. The arguments are interpreted as 306 ACI commands and are applied for each input stream. The results of 307 the commands are passed as arguments to the binary operator. For each input 308 stream one output stream is generated. 308 - has 2 arguments, it is applied to these (once for each input stream). 309 309 310 310 CONDITIONAL 311 311