--- parser3/operators.txt 2024/12/21 00:27:50 1.265 +++ parser3/operators.txt 2025/10/04 19:20:01 1.269 @@ -156,6 +156,9 @@ odbc parser3odbc.dll ^rem{} a comment, removed at compile time + ^syslog[ident;message[;info|warning|error|debug]] + writes a message to syslog + ^cache[file](seconds){code}[{catch code}] relative time assignment caches the string resulting from the code execution for 'seconds' seconds @@ -435,6 +438,8 @@ hash ^hash.set[first|last;value] ^hash.set([-+]N)[value] sets the value of the specified ordered hash element + ^hash.array[[keys|values]] + is equivalent to ^array::copy[$hash] or returns an array of the hash’s keys or values ^hash.rename[old_key;new_key] ^hash.rename[ $.old_key[new_key] ...] renames the specified hash keys @@ -584,6 +589,8 @@ date date - %Y-%m-%d time - %H:%M:%S where published='^date.sql-string[]' + ^date:sql-string[[datetime|date|time]] + sql-string for now ^date:calendar[rus|eng](year;month) returns an unnamed table, columns: 0..6, week, year ^date:calendar[rus|eng](year;month;day) @@ -594,14 +601,18 @@ date returns the last day of $date's month ^date.gmt-string[] Fri, 23 Mar 2001 09:32:23 GMT + ^date:gmt-string[] + gmt-string for now ^date.iso-string[] 2001-03-23T12:32:23+03 + ^date:iso-string[] + iso-string for now file $uploaded_file_from_post.name $uploaded_file_from_post.size $uploaded_file_from_post.text - ^file.save[text|binary;filename[;$.charset[which charset to save in]]] + ^file.save[text|binary;filename[;$.charset[which charset to save in] $.append(false)]] ^file:delete[filename] ^file:find[filename][{if not found}] ^file:list[path[;pattern-string|pattern-regex]] @@ -1085,10 +1096,17 @@ reflection the current state of the method call stack in the parser ^reflection:mixin[source; $.to[target] $.name[name] $.methods(true/false) $.fields(true/false) $.overwrite(false/true)] copies methods and fields from one class to another + ^reflection:override[method[; $.to[target] $.name[new_name]]] + overrides or defines a method request + https://site.name/a%20b/?name=some%20value $request:query + name=some%20value $request:uri + /a%20b/?name=value + $request:path + /a b/ $request:document-root directory relative to which paths are considered in parser, default = $env:DOCUMENT_ROOT $request:argv @@ -1418,4 +1436,4 @@ if $SIGPIPE(1) is defined in MAIN, then if the method description explicitly contains the local variable result (there is also an implicit variable), then the code for outputting whitespace literals does not get into the final bytecode -$Id: operators.txt,v 1.265 2024/12/21 00:27:50 moko Exp $ +$Id: operators.txt,v 1.269 2025/10/04 19:20:01 moko Exp $