Diff for /parser3/operators.txt between versions 1.209 and 1.271

version 1.209, 2008/06/16 12:49:29 version 1.271, 2026/05/06 20:33:38
Line 1 Line 1
 !сделано  operators
 Xне сделано, видимо, не будет сделано      ^eval(expression)[format] expressions, apart from the usual functions, supports:
 без значка - будет сделано          #comments allowed
               they work until the end of the line or the closing parenthesis
               nested parentheses are allowed inside comments
 операторы          among the non-obvious operators:
     !^eval(выражение)[формат] выражение, кроме обычных функций::              | bitwise XOR
         !допустимы #комментарии              || logical XOR
             работают до конца строки или закрывающейся круглой скобки              ~ bitwise negation
             внутри комментария допустимы вложенные круглые скобки              \ integer division 10\3=3
         !из неочевидных операторов:          def checks if defined:
             !| побитный xor              an empty string is not defined
             !|| логический xor              an empty table is not defined
             ~ побитное отрицание              an empty hash is not defined
             \ целочисленное деление 10\3=3          eq ne lt gt le ge for string comparison,
         !def для проверки defined,          in "/dir/" to check if the current document is located in the specified directory
             пустая строка не defined              ["no expressions allowed inside; if you need a complex comparison, assign it to a variable"]
             пустая таблица не defined          is 'type' to check the type of the left operand,
             пустой hash не defined              e.g., "is the method parameter not a hash?"
         ^if(method $hash.delete){yes}          -f checks if a file exists on disk,
         !eq ne lt gt le ge для сравнения строк,           -d checks if a directory exists on disk,
         !in "/dir/" для проверки          a quoted string (double or single quotes) is treated as a string, unquoted text is a string until the nearest whitespace
             ["внутри не допустимы, если надо сравнить со сложным,           numeric literals can be in hex format like 0xABC
             пусть это будет переменная].          priorities:
         !is 'type' для проверки типа левого операнда,               /* logical */
             скажем, можно проверить, "не hash ли параметр метода?"              %left "!||"
         !-f для проверки существования файла на диске,              %left "||"
         !-d для проверки существования каталога на диске,              %left "&&"
         !строка в кавычках|апострофах - строка, без кавычек|апострофов строка до               %left '<' '>' "<=" ">=" "lt" "gt" "le" "ge"
             ближайшего whitespace              %left "==" "!=" "eq" "ne"
         !числовой литерал бывает 0xABC              %left "is" "def" "in" "-f" "-d"
         !приоритеты:              %left '!'
            /* logical */  
            %left "!||"              /* bitwise */
            %left "||"              %left '!|'
            %left "&&"              %left '|'
            %left '<' '>' "<=" ">="   "lt" "gt" "le" "ge"              %left '&'
            %left "==" "!="  "eq" "ne"              %left '~'
            %left "is" "def" "in" "-f" "-d"  
            %left '!'              /* numerical */
            условие ? когдаДа: когдаНет              %left '-' '+'
               %left '*' '/' '%' '\\'
            /* bitwise */              %left '~'     /* negation: unary */
            %left '!|'  
            %left '|'          literals:
            %left '&'               true
            %left '~'              false
   
            /* numerical */      ^if(condition){then}{else}
            %left '-' '+'      ^if(condition1){yes}[(condition2){yes}[(condition3){yes}[...]]]{no}
            %left '*' '/' '%' '\\'          unlimited number of additional conditions (elseif)
            %left NEG     /* negation: unary - */  
         !литералы      ^switch[value]{^case[var1[;var2...]]{action}^case[DEFAULT]{default action}}
            true  
            false      ^while(condition){body}[[delimiter]|{delimiter executed before each non-empty non-first body}]
   
                  ^for[i](0;4){body}[[delimiter]|{delimiter executed before each non-empty non-first body}]
     !^if(условие){когда да}{когда нет}  
     !^switch[значение]{^case[вариант1[;вариант2...]]{действие}^case[DEFAULT]{действие по умолчанию}}      ^try{
     !^while(условие){тело}[[разделитель]|{разделитель который выполняется перед непустым очередным не первым телом}]  
     !^for[i](0;4){тело}[[разделитель]|{разделитель который выполняется перед непустым очередным не первым телом}]  
     !^use[модуль]  
     !^try{  
         ...          ...
         !^throw[sql.connect[;вася[;болван]]] // был ^error[текст]          ^throw[sql.connect[;vasya[;mistaken]]] // previously ^error[text]
         !^throw[          ^throw[
                 $.type[sql.connect]              $.type[sql.connect]
                 $.source[вася]              $.source[vasya]
                 $.comment[болван]              $.comment[mistaken]
         ]          ]
         ...          ...
     }{      }{
         ^if($exception.type eq "sql"){          ^if($exception.type eq "sql"){
             $exception.handled(1|true)  ^rem{флаг, что exception обработан}              $exception.handled(1|true)  ^rem{flag that exception is handled}
             ....              ....
         }          }
           
         ^switch[$exception.type]{          ^switch[$exception.type]{
             ^case[sql;mail]{              ^case[sql;mail]{
                 $exception.handled(1)                  $exception.handled(1)
                 код, обрабатывающий sql ошибку                  code handling sql error
                 $exception.type = sql.connect                  $exception.type = sql.connect
                 $exception.file $exception.lineno [если не запрещены при компиляции]                  $exception.file $exception.lineno $exception.colno [if not disabled at compile time]
                 $exception.source = вася                  $exception.source = vasya
                 $exception.comment = болван                  $exception.comment = mistaken
             }              }
             ^case[DEFAULT]{              ^case[DEFAULT]{
                 код, обрабатывающий другую ошибку                  code handling another error
                 ^throw[$exception] << re-throw // DON'T! It's default behaviour!                  ^throw[$exception] << re-throw // DON'T! It's default behaviour!
             }              }
         }          }
     }      }
     ^exit[] + - прекращяет обработку запроса.   
         удобно сделать после выставления 401 ошибки      ^break[]
     ^return[результат] + - отваливает из выполнения метода,           breaks the loop
         выдавая нестандартный результат      ^break(true|false)
     !^break[] + - обрывает цикл          breaks the loop if true
     !^continue[] + - обрывает итерацию цикла  
     !^untaint[[as-is|file-spec|http-header|mail-header|uri|sql|js|xml|html|optimized-html|regex]]{код}      ^continue[]
           breaks the current iteration of the loop
       ^continue(true|false)
           breaks the current iteration if true
   
       ^return[]
           stops method execution
       ^return[value]
           assigns $result the value and stops method execution
   
       ^untaint[[as-is|file-spec|uri|http-header|mail-header|sql|js|json|parser-code|regex|xml|html|optimized-[as-is|xml|html]]]{code}
         default as-is          default as-is
     !^taint[[lang]][код]  
       ^taint[[lang]][code]
         default "just tainted, language unknown"          default "just tainted, language unknown"
     !^process[[$caller.CLASS|$object|$КЛАСС:CLASS]]{строка, которая будет process-ed, как код}[  
         $.main[во что переименовать @main]      ^apply-taint[[lang;]text]
         $.file[имя файла из которого, якобы, данный текст]          applies transformations specified in the string, "indefinitely dirty" is considered as lang, producing a clean string
         $.lineno(номер строки в файле, откуда данный текст. можно отрицательный)   
       ^process[[$caller.CLASS|$object|$CLASS:CLASS]]{string to be processed as code}[
           $.main[what to rename @main to]
           $.file[name of the file supposedly containing this text]
           $.lineno(line number in the file from where this text originated, can be negative)
     ]      ]
     !^process..[путь][во что переименовать @main]      ^process..[path][what to rename @main to]
       по умолчанию, методы компилируются в $self [в случае оператора, $self=$MAIN:CLASS]          by default, methods are compiled into $self [in case of operator, $self=$MAIN:CLASS]
     !^connect[protocol://строка соединения]]{код с ^sql[...]-ями}  
         !mysql://user:pass@{host[:port]|[/unix/socket]}/database?      ^connect[protocol://connection-string]]{code with ^sql[...] calls}
           mysql://user:pass@{host[:port][, host[:port]]|[/unix/socket]}/database?
             ClientCharset=parser-charset << charset in which parser thinks client works              ClientCharset=parser-charset << charset in which parser thinks client works
             charset=cp1251_koi8&              charset=UTF-8&
             timeout=3&              timeout=3&
             compress=1&              compress=0&
             named_pipe=1&              named_pipe=1&
             multi_statements=1& allow execute more then one query in one parser :sql{} request              multi_statements=1&  allow executing more than one query in a single :sql{} request
               config_file=.my.cnf&
               config_group=parser3&  use group name from .my.cnf
             autocommit=1              autocommit=1
             autocommit если выставить в 0, будет делать commit/rollback              if autocommit is set to 0, it will perform commit/rollback
   
         !pgsql://user:pass@{host[:port]|[local]}/database?          pgsql://user:pass@{host[:port]|[local]}/database?
             client_encoding=win,[to-find-out]              client_encoding=win,[to-find-out]
             &datestyle=ISO,SQL,Postgres,European,NonEuropean=US,German,DEFAULT=ISO              &datestyle=ISO,SQL,Postgres,European,NonEuropean=US,German,DEFAULT=ISO
             &ClientCharset=parser-charset << charset in which parser thinks client works              &ClientCharset=parser-charset << charset in which parser thinks client works
           
         !oracle://user:pass@service?  
             NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&  
             NLS_LANGUAGE  language-dependent conventions  
             NLS_TERRITORY  territory-dependent conventions  
             NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS  
             NLS_DATE_LANGUAGE  language for day and month names  
             NLS_NUMERIC_CHARACTERS  decimal character and group separator  
             NLS_CURRENCY  local currency symbol  
             NLS_ISO_CURRENCY  ISO currency symbol  
             NLS_SORT  sort sequence  
             ORA_ENCRYPT_LOGIN=TRUE  
             ClientCharset=parser-charset << charset in which parser thinks client works  
   
         !odbc://DSN=dsn^;UID=user^;PWD=password^;ClientCharset=parser-charset          odbc://DSN=dsn^;UID=user^;PWD=password^;ClientCharset=parser-charset
             ClientCharset << charset in which parser thinks client works              ClientCharset << charset in which parser thinks client works
               
         !sqlite://database  
   
         для работы connect нужно, чтобы заранее(рекомендуется в системном конфигурационном auto.p)          sqlite://DBfile?
         была определена таблица              ClientCharset=parser-charset& << charset in which parser thinks client works
               autocommit=1
   
           to use ^connect, the $SQL table must be defined beforehand (recommended in the system configuration auto.p)
 #sql drivers  #sql drivers
 $SQL[  $SQL[
     $.drivers[^table::create{protocol   driver  client      $.drivers[^table::create{protocol   driver  client
 mysql   /www/parser3/libparser3mysql.so /usr/local/lib/mysql/libmysqlclient.so  mysql   $prefix/libparser3mysql.so      libmysqlclient.so
 pgsql   /www/parser3/libparser3pgsql.so /usr/local/pgsql/lib/libpq.so  pgsql   $prefix/libparser3pgsql.so      libpq.so
 oracle  /www/parser3/libparser3oracle.so        /u01/app/oracle/product/8.1.5/lib/libclntsh.so?ORACLE_HOME=/u01/app/oracle/product/8.1.5&ORA_NLS33=/u01/app/oracle/product/8.1.5/ocommon/nls/admin/data  sqlite  $prefix/libparser3sqlite.so     sqlite3.so
 sqlite  /www/parser3/libparser3sqlite.so        /usr/local/sqlite/lib/sqlite3.so  odbc    parser3odbc.dll
 odbc    c:\drives\y\parser3project\odbc\debug\parser3odbc.dll  
 }]  }]
 ]  ]
         !в таблице у oracle в столбце клиентской библиотеки      ^rem{}
         допустимо задать environment параметры инициализации(если они не заданы иначе заранее),          a comment, removed at compile time
         допустимы имена, начинающиеся на NLS_ ORA_ и ORACLE_, или оканчивающиеся на +  
         под win32       ^syslog[ident;message[;info|warning|error|debug]]
             необходим PATH+=^;C:\Oracle\Ora81\bin          writes a message to syslog
         к сведению:   
           ORA_NLS33 нужен для считывания файлика с клиентской кодировкой(задаваемой NLS_LANG)      ^cache[file](seconds){code}[{catch code}]
              если кодировка не по-умолчанию, обязательно указать в .drivers,          relative time assignment
              иначе будет сообщение про неправильный NLS параметр          caches the string resulting from the code execution for 'seconds' seconds
              (имеют в виду, что не нашли кодировку из NLS_LANG)          if 0 seconds, do not cache, and remove any existing old cache
           ORACLE_HOME нужен для считывания текстов сообщений об ошибках,          in the catch code, $exception.handled[cache]  ^rem{flag that exception is handled}
         можно указывать и в строке соединения, но глобален, и лучше вынести за скобки,      ^cache[file][expires date]{code}[{catch code}]
         в отличие от клиентской кодировки NLS_LANG, и прочего.          absolute time assignment
       ^cache[file]
         ВНИМАНИЕ: при работе с большими текстовыми блоками в oracle&pgsql[а лучше всегда],          deletes the file [no error if it doesn't exist]
         ставить такой префикс перед открывающим апострофом, впритык, везде без проблелов      ^cache(seconds)
         /**имя_поля**/'literal'      ^cache[expires date]
     !^rem{}          signals to the upper-level ^cache "reduce it to these many 'seconds'/'expires'"
     !^cache[файл](секунд){код}[{catch код}]          ultimately: ^cache(0) cancels caching
         !относительное задание времени      ^cache[]
         !скэшировать строку, которая получается при выполнении кода на 'секунд' секунд          returns the current expires date
         !если 0секунд, значит не кэшировать, а старый такой стереть  
         !в catch коде $exception.handled[cache]  ^rem{флаг, что exception обработан}      each method has a local variable $result. If you put something in it,
     !^cache[файл][expires date]{код}[{catch код}]      that will be the method's result, not its body
         !абсолютное задание времени  
     X^cache[файл] удалить файл [не ругает, если его нет] // такое было, больше не будет, делать ^cache(0)      each method has a local variable $caller, containing the parent stack frame,
     !^cache(секунд)      you can write to its local variables
     !^cache[expires date]  
         !сигнализирует вышестоящему ^cache "уменьши до стольких-то 'секунд'/'expires'"      use(^use or @USE) searches for and includes a file:
         !в пределе: ^cache(0) отменить кэширование          1. If the path starts with /, it is considered a path from the web root
     !^cache[] выдаёт текущую expires date          2. Relative to the current directory
     X^cache[read]           3. Relative to strings from the $MAIN:CLASS_PATH table, bottom-up
         сигнализирует вышестоящему ^cache "взять скэшированное насильно, игнорируя expires",             $MAIN:CLASS_PATH is a global string or table with a path or paths to a directory
         выдаёт bool "получилось/нет"             with classes (from the web root), set it in the configuration auto.p
         !^sleep(seconds)  
       A global table $CHARSETS[$.name[filename]]
          defines which characters are considered what (whitespace, letter, etc.), as well as their Unicode
     Xесть глобальный флажок в свойствах/командной строке "не оптимизировать"      format: tab-delimited file, with a header:
     !и есть исключение: ^untaint[html]{код} не оптимизируется           char    white-space    digit    hex-digit    letter    word    lowercase    unicode1    unicode2
         Xбезотностительно флажка          A       x              x        x            a        0x0041  0xFF21
           where char and lowercase can be letters or 0xCODES
     !у всех методов есть локальная переменная $result, если в неё что положить,          if the character has a single Unicode representation equal to itself, you can omit unicode
     !то _это_ будет результатом макроса, а не его тело      UTF-8 is always available and is the default encoding for request and response
     !у всех методов есть локальная переменная $caller, в ней лежит родительский stack frame,      WARNING: the encoding name is case-insensitive
     !если туда записать  
   syntax
     !use(^use или @USE) ищет файл...      $name[new value]
     !1. ...если путь начинается с /, то считается, что это путь от корня веб пространства      $name(arithmetic expression of new value)
     !есть глобальная строка/таблица $MAIN:CLASS_PATH с путём/путями к каталогу с классами.      $name{code of new value}
         !корень путя/путей считается от корня веб пространства.      $name whitespace or ${name}something - variable value
     !2. ...относительно строчки из table $MAIN:CLASS_PATH, снизу вверх      ^name parameters - call
        задавайте её в конфигурационном auto.p вашего сайта      $name.CLASS - class of the value
       $name.CLASS_NAME - name of the class
     !глобальная табличка $CHARSETS[$.название[имя файла]]      $name[$.key[] () {}] - constructor of a hash variable with element $name.key
     !задаёт какие буквы считаются какими(whitespace, letter, etc), а также их unicode      ^method[$.key[] () {}] - constructor of a hash parameter with element $parameter.key
     !формат: tab delimited файл, с заголовком:      $CLASS.name  access a class variable
     !    char    white-space    digit    hex-digit    letter    word    lowercase    unicode1    unicode2      
     !    A            x    x    x    a    0x0041    0xFF21      the name ends before: space tab linefeed ; ] } ) " < > + * / % & | = ! ' , ?
     ! где char и lowercase могут быть буквами, а могут быть и 0xКОДАМИ          i.e. you can do $name,aaaa
     ! если символ имеет единственное unicode представление, равное самому символу,           but if you need a character after the name, say -, then ${name}-
     ! можно не указывать unicode  
     !всегда есть кодировка UTF-8,       in expressions, + and - are additional name boundaries
     !она является кодировкой по-умолчанию для request и response  
     !ВНИМАНИЕ: имя кодировки case sensitive      you can access compound objects as: $name.subname where subname can be:
           a string
 синтаксис          a $variable
     !$имя[новое значение]          a string$variable
     !$имя(математическое выражение нового значения)          [code computing a string]
     !$имя{код нового значения}      for example: $hash[$.age(88)] $get[$.field[age]] ^hash.[$get.field].format{%05d}
     !$имя whitespace или ${имя}неважно  подстановка значения  
     !^имя параметры  вызов  parameters := one or more parameters
     !$имя.CLASS класс значения  parameter :=
     !$имя.CLASS_NAME имя класса      (arithmetic expression) evaluated multiple times inside the call,
     !$имя[$.key[] () {}]  конструктор элемента переменной-хэша $имя.key  |   [code] evaluated once before the call,
     !^method[$.key[] () {}] конструктор элемента параметра-хеша $parameter.key  |   {code} evaluated zero or many times inside the call,
     $CLASS.имя  обращение к переменной класса      ';' are allowed, making multiple parameters in a single bracket
   
     имя заканчивается перед: пробел tab linefeed ; ] } ) " < >  + * / % & | = ! ' , ? {уточнить}  
     т.е. можно  void
     $имя,aaaa      all methods present in the string class object are available, the result behaves as if it were an empty string
     но если нужно после имени букву, скажем -, то      ^void:sql{query without result}{$.bind[see table::sql]}
     ${имя}-  
     в выражениях + и - являются дополнительными концами имени  int,double
     !можно обращаться к составным объектам так: $name.subname      ^name.int[]
     !где subname бывает:           integer value
     !    строка      ^name.double[]
     !    $переменная           double value
     !    строка$переменная      ^name.bool[] ^name.bool(true|false)
     !    [код, вычисляющий строку]           boolean value
     например: $хэш[$.возраст(88)] $достать[$.поле[возраст]] ^хэш.[$достать.поле].format{%05d}      ^name.inc(how much +)
       ^name.dec(how much -)
 параметры:=один или много параметров      ^name.++[] output the value, then increment by 1
 параметр:=      ^name.--[] output the value, then decrement by 1
     !(математическое выражение) вычисляется много раз внутри вызова,       ^name.mul(how much *)
 |    ![код] вычисляется один раз перед вызовом,       ^name.div(how much /)
 |    !{код} вычисляется 0 или много раз внутри вызова,       ^name.mod(how much %)
     !везде допустимы ; внутри - делает много параметров в одних скобках      ^name.format[format]
       ^int/double:sql{query}[[$.limit(2) $.offset(4) $.default{0} $.bind[see table::sql]]]
           the query result should be one column/one row
 !void  
     !^имя.length[]  string
         0      in expression
     !^имя.pos[...]          def value means "not empty?"
         -1          logical/numerical value equals an attempt to convert to double,
     !^имя.left(n)              an empty string quietly converts to 0
        ничего не выдаёт          example:
     !^имя.right(n)          ^if(def $form:name) not empty?
        ничего не выдаёт          ^if($user.isAlive) true? [auto-convert to number, not zero?]
     !^имя.mid(p[;n])      ^string:sql{query}[[$.limit(1) $.offset(4) $.default{n/a} $.bind[see table::sql]]]
        ничего не выдаёт          the query result should be one column/one row
     !^имя.int[]  (default)       ^string.int[] ^string.int(default)
         0 или default          integer value of the string, if conversion fails, default is taken
     !^имя.double[] (default)      ^string.double[] ^string.double(default)
         0 или default          double value of the string, if conversion fails, default is taken
     !^имя.bool[] (default)      ^string.bool[] ^string.bool(default)
         false или default          boolean value of the string, if conversion fails, default is taken
     !^void:sql{запрос без результата}{$.bind[см. table::sql]}      ^string.format[format] %d  %.2f %02d...
       ^string.match[string-pattern|regex-pattern][[search options]] $prematch $match $postmatch $1 $2...
           search options:
 !int,double  
     !^имя.int[]  целочисленное значение   
     !^имя.double[]+  double значение   
     !^имя.bool[] + .bool(true|false)  bool значение  
     !^имя.inc(на сколько +)  
     !^имя.dec(на сколько -)  
     !^имя.mul(на сколько *)  
     !^имя.div(на сколько /)  
     !^имя.mod(на сколько %)  
     !^имя.format[формат]  
     !^int/double:sql{query}[[$.limit(2) $.offset(4) $.default{0} $.bind[см. table::sql]]]  
         запрос, результат которого должен быть один столбец/одна строка  
   
 !string  
     !в выражении   
         !def значение равно "не пуста?"  
         !логическое/числовое значение равно попытке преобразовывания к double,  
             пустая строка тихо преобразуется к 0      
   
         пример:  
         ^if(def $form:name) не пуста?  
         ^if($user.isAlive) истина? [автопреобразование к числу, не ноль?]  
     !^string::sql{query}[[$.limit(1) $.offset(4) $.default{n/a} $.bind[см. table::sql]]]  
         результат запроса должен быть один столбец/одна строка  
     !^строка.int[] .int(default) целочисленное значение строки.   
         если ломается преобразование, берётся default  
     !^строка.double[]+ .double(default)  double значение строки  
     !^строка.bool[] + .bool(default)  bool значение строки  
         если ломается преобразование, берётся default  
     !^строка.format[формат] %d  %.2f %02d...  
     !^строка.match[шаблон][[опции поиска]]  $prematch $match $postmatch $1 $2...  
         опции поиска=  
         i CASELESS          i CASELESS
         x whitespace in regex ignored          x whitespace in regex ignored
         s singleline = $ считается концом всего текста          s singleline = $ matches end of entire text
         m multiline = $ считается концом строки[\n], не концом всего текста          m multiline = $ matches end of line[\n], not end of entire text
         g найти все вхождения, а не одно          g find all occurrences, not just one
         ' создавать столбцы prematch, match, postmatch          ' create columns prematch, match, postmatch
         n вернуть цисло с количеством найденных совпадений, а не таблицу с результатами          n return the number of matches instead of a table
     !^строка.match[шаблон][опции поиска]{замена}          U invert the meaning of the '?' modifier
         опции поиска+=      ^string.match[string-pattern|regex-pattern][search options]{replacement}
         g заменить все вхождения, а не одно          additional search option:
     !^строка.split[разделитель][[lrhv]][[название столбца для вертикального разбиения]]          g replace all occurrences, not just one
         l слева направо [default]      ^string.split[delimiter|regex][[lrhva]][[column name for vertical splitting]]
         r справа налево          l left to right [default]
         h nameless таблица с ключами 0, 1, 2, ...          r right to left
         v таблица из 1 столбца 'piece' или как передадут [default]          h nameless table with keys 0, 1, 2, ...
     !^строка.{l|r}split[разделитель] таблица из столбца $piece          v table of one column 'piece' or as provided [default]
         оставлен для совместимости          a array
     !^строка.upper|lower[]       ^string.{l|r}split[delimiter] a table from the $piece column
     X^строка.truncate(предел терпенья) стиль :(          kept for compatibility
     !^строка.length[]      ^string.upper|lower[]
     !^строка.mid(P[;N])      ^string.length[]
         без N - "до конца строки"      ^string.mid(P[;N])
     !^строка.left(N)          without N - "until the end of the string"
     !^строка.right(N)      ^string.left(N), -1 returns the entire string
     !^строка.pos[подстрока]      ^string.right(N)
         <0 = не найдено      ^string.pos[substring]
     !^строка.replace[$таблица_подстановок_строка_на_строку]      ^string.pos[substring](position from which to search)
     !^строка.save[[append;]путь]          <0 = not found
     !^строка.normalize[] выдает другую строку, в которой фрагменты на одном языке объединены      ^string.replace[$table_of_substitutions_string_to_string]
         полезно делать перед сложными match операциями, если вы знаете, что входная строка      ^string.replace[$what;$to]
         состоит из большого числа фрагментов      ^string.save[[append;]path]
     !^строка.trim[start|both|end[;chars]] выкидывает chars из начала/конца/и начала и конца      ^string.save[path[;$.charset[in which encoding save] $.append(true)]]
         default 'chars' -- whitespace chars          saves the string to a file
     !^строка.append[string]      ^string.trim[start|both|end|left|right[;chars]]
     !^строка.base64[] encode          removes chars from the start/end/or both start and end
     !^string:base64[encoded] decode          default 'chars' = whitespace chars
       ^string.trim[chars]
 !table          removes chars from start and end
     в выражении       ^string.base64[ $.pad(bool) $.wrap(bool) $.url-safe(bool) ] encode
         логическое значение равно "не пуста?"      ^string:base64[encoded[; $.pad(bool) $.strict(bool) $.url-safe(bool) ]] decode
         числовое значение равно count[]      ^string.idna[]
     !^table::create[[nameless]]{данные}[[$.separator[^#09]]] старое имя "set"          IDNA encoding, supports Cyrillic domains
     !^table::create[table][[$.limit(1) $.offset(5) $.offset[cur] $.reverse(1)]]      ^string:idna[encoded]
         клонирует таблицу              IDNA decoding, supports Cyrillic domains
         reverse << сзаду на перёд (работает пока только в locate, в table::create НЕ работает)      ^string.js-escape[]
     !^table::load[[nameless;]путь[;опции]]          encoding for passing to JS (%uXXXX)
         !если не nameless, названия колонок берутся из первой строки      ^string:js-unescape[escaped]
         !пустые строки, и строки в первой колонке содержащие '#', игнорируются                  decoding from js
         !$.separator[^#09]      ^string:unescape[js|uri;escaped; $.charset[] ]
         !$.encloser["] по-умолчанию, нет.          decoding passed from js or uri
     !^table::sql{query}[[$.limit(2) $.offset(4) $.bind[hash] todo:$.default{ ^table::create[...] }]]      ^string.contains[key]
         bind привязывает переменные в запросе к их значениям          for compatibility with hashtable
         пока реализован только для oracle  
         в запросе надо написать ":имя"  table
         в параметре bind передать hash, из которого возьмётся(или куда запишется) значение      in expression
     !^таблица.save[[nameless|append;]путь[;опции, см. load]]          logical value means "not empty?"
     !$таблица.поле          numerical value equals count[]
     !$таблица.fields  из named таблицы выдаёт текущую запись как Hash      $table.field
     !^таблица.menu{тело}[[разделитель]]      $table.field[new value]
     !^таблица.offset[] печатает offset      $table.fields
     !^таблица.offset[[whence]](5) сдвигает          from a named table returns the current record as a Hash
         !whence=cur|set      ^table::create[[nameless]]{data}[[$.separator[^#09] $.encloser[]]]
         !без whence - это cur      ^table::create[table][[$.limit(1) $.offset(5) $.offset[cur] $.reverse(1)]]
     !^таблица.count[]          clones the table
     !^таблица.line[] 1-based offset          reverse - in reverse order
     !^таблица.sort{{ключеделатель строка}|(ключеделатель число)}[{desc|asc}] default=asc      ^table::load[[nameless;]path[;options]]
     !^таблица.append{данные}          if not nameless, column names are taken from the first line
     X^таблица.insert{данные}[(n)] добавить запись           empty lines, and lines in the first column containing '#' are ignored
         на текущую позицию [добавить запись на позицию n]          $.separator[^#09]
     X^таблица.remove(position[;count]) - стирает запись           $.encloser["] by default, none
         из текущей позиции [стирает запись из конкретной позиции]       ^table::sql{query}[[$.limit(2) $.offset(4) $.bind[hash]]]
             [стирает count записей]          bind associates variables in the query with their values
     !^таблица.join[таблица][$.limit(1) $.offset(5) $.offset[cur]] - добавляет записи из таблицы.           currently implemented only for oracle
         таблицы должны иметь одинаковую структуру.          in the query you need to write ":name"
     !^таблица.flip[] выдаёт транспонированную, надо куда-то сложить, потом пользовать          in the bind parameter pass a hash from which the value is taken (or where it is written)
     !^таблица.locate[поле;значение][[$.limit(1) $.offset(5) $.offset[cur] $.reverse(1)]]       ^table.save[[nameless|append;]path[;options, see load]]
         передвигает текущую строку, если найдёт. выдаёт bool          saves the table to a file
     !^таблица.locate(логическое выражение)[[$.limit(1) $.offset(5) $.offset[cur] $.reverse(1)]]      ^table.menu{body}[[delimiter]]
         передвигает текущую строку, если найдёт. выдаёт bool          executes the body code for each row of the table
     !^таблица.hash{[поле]|{код}|(выражение)}[[поле значений|table поля значений]][[$.distinct(1) $.distinct[tables]]]      ^table.foreach[position;value]{body}[[delimiter]]
         значением $hash.ключ будет hash в котором поля значений будут ключами      ^table.line[]
         поля значений могут быть не указаны, тогда ими будут все столбцы, включая ключевой          current table row, starting from 1
         если distinct содержит true, то не будет ошибки при повторяющихся ключах      ^table.offset[]
         если distinct содержит tables, то будет создан hash из таблиц, содержащих строки с ключом          offset of the current row from the start, starting from 0
     !^таблица.columns[[название столбца]]+ таблица из одного столбца 'column' или как передадут      ^table.offset[[whence]](5)
     !$отобранное[^таблица.select(выражение)] = таблица из тех же столбцов и строк, у которых условие совпало          shifts whence=cur|set, without whence = cur
       ^table.count[], ^table.count[rows]
           number of rows in the table
       ^table.count[columns]
           number of columns
       ^table.count[cells]
           number of cells in the current row
       ^table.sort{{string-key-maker}|(numeric-key-maker)}[{desc|asc}] default=asc
       ^table.append{data}
       ^table.append[ $.column_name[column_value] ]
       ^table.insert{data} add a record at the current position
       ^table.insert[ $.column_name[column_value] ]
       ^table.delete[]
           deletes the record at the current position
       ^table.join[table][$.limit(1) $.offset(5) $.offset[cur]]
           adds records from the table, tables must have the same structure
       ^table.flip[]
           returns the transposed version
       ^table.locate[field;value][[$.limit(1) $.offset(5) $.offset[cur] $.reverse(1)]]
           moves the current row if found. returns bool
       ^table.locate(logical expression)[[$.limit(1) $.offset(5) $.offset[cur] $.reverse(1)]]
           moves the current row if found. returns bool
       ^table.hash{[field]|{code}|(expression)}[[value field(s)|table of value fields]{value code}][[$.distinct(1) $.distinct[tables] $.type[hash]]]
           by default $hash.key value is a hash where value fields are keys
           value fields may not be specified, then they are all columns including the key
           if distinct is true, no error if duplicate keys
           if distinct is tables, a hash of tables is created, containing rows with that key
           $.type[string/table] changes the element value to a string (specify one column) or a table
       ^table.columns[[column name]]
           table of one column 'column' or as provided
       ^table.cells[], ^table.cells(limit)
           returns an array of cells of the current row
       ^table.array[]
           returns an array of hashes, each hash representing the data of one row
       ^table.array[column]
           returns an array of values from the specified column
       ^table.array{code}
           returns an array of results from executing the given code for each row
       ^table.rename[column name;new column name] ^table.rename[ $.column_name[new column name] ...]
           renames a column or multiple columns
       $selected[^table.select(expression)]
           a table from those columns and rows where the condition matched
         $adults[^man.select($man.age>=18)]          $adults[^man.select($man.age>=18)]
     ^таблица.color[цвет1;цвет2]      ^table.color[color1;color2]
           alternates color1 and color2 for each row
   
 !hash  hash
     !в выражении       in expression
         !логическое значение равно "не пуста?"          logical value means "not empty?", a hash with _default is already not empty
         !числовое значение равно _count[]          numerical value equals count[]
     !$хеш.ключ      $hash.key
         !_default - специальный ключ, если задан,           _default - a special key, if defined,
         то при обращении по ключу, которому нет соответствия, выдаётся _default значение           then when accessing a non-existing key, _default value is returned
     !$хеш.fields выдает $hash. чтобы класс hash был чуть больше похож на класс table      $hash.fields
     !^hash::create[[!copy_from_hash|copy_from_hashfile]]          returns $hash, making hash class more similar to table class
         создаёт новый hash, копию старого      ^hash::create[[|copy_from_hash|copy_from_hashfile]]
     !^хеш.add[слагаемое]          creates a new hash, a copy of the old one
         перезаписывает одноимённые      ^hash.add[term]
     !^хеш.sub[вычитаемое]          overwrites entries with the same name
     !^хеш.union[b] = объединение      ^hash.sub[subtracted]
         одноимённые остаются      ^hash.union[b]
     !^хеш.intersection[b] = пересечение          union, same-named remain
         значения хеш      ^hash.intersection[b][[$.order[self|arg]]]
     !^хеш.intersects[b] = bool          intersection, new hash, order defines the element order (as in the source hash or parameter hash)
     !^hash::sql{запрос}[[$.distinct(1) $.limit(2) $.offset(4) todo:$.default{$.field[]...}]]      ^hash.intersects[b] = bool
         получается hash(ключи=значения первая колонка ответа)      ^hash::sql{query}[[$.distinct(1) $.limit(2) $.offset(4) $.type[hash|string|table]]]
         of hash(ключи=названия остальных колонкок ответа)          results is hash(keys = values of the first column of the response) of hash(keys = names of the other columns), or
     !^хеш._keys[[название колонки с ключами]]+ таблица из одного столбца $key или как передадут          string = each element's value is a string (need exactly two columns), or
     !^хеш._count[]          table = each element's value is a table
     !^хеш.foreach[key;value]{тело}[[разделитель]|{разделитель который выполняется перед непустым очередным не первым телом}]      ^hash.keys[[name of key column]]
     !^хеш.delete[ключ]  удалить ключ          a table of one 'key' column or as provided
     !^хеш.contain[ключ] - существует ли в хеше ключ (bool)      ^hash.count[]
       ^hash.foreach[key;value]{body}[[delimiter]|{delimiter executed before each non-empty non-first body}]
 !hashfile      ^hash.delete[key]
     !^hashfile::open[filename]          delete key
     !^хешфайл.clear[]  забыть всё      ^hash.contains[key]
     !$хешфайл.ключ[значение]  положить значение          checks if hash contains a key (bool)
     !$хешфайл.ключ[$.value[значение] $.expires[ЗНАЧЕНИЕ]}      ^hash.at[first|last][[key|value|hash]]
       положить значение до expires      ^hash.at([-]N)[[key|value|hash]]
       значение поля expires может быть date, или число дней(0дней=на вечно)          access specified elements of an ordered hash
     !$хешфайл.ключ  достать      ^hash.set[first|last;value]
     !^хешфайл.delete[ключ]  удалить ключ      ^hash.set([-+]N)[value]
     !^хешфайл.delete[]  удалить файлы, содержащие данные          sets the value of the specified ordered hash element
     !^хешфайл.hash[]      ^hash.array[[keys|values]]
         преобразовать в обычный hash          is equivalent to ^array::copy[$hash] or returns an array of the hash’s keys or values
         попутно стирает устаревшие пары      ^hash.rename[old_key;new_key]
     !^хешфайл.foreach[key;value]{тело}[[разделитель]|{разделитель который выполняется перед непустым очередным не первым телом}]      ^hash.rename[ $.old_key[new_key] ...]
     !^хешфайл.release[]          renames the specified hash keys
         записать данные и снять блокировки.      ^hash.sort[key;value]{{string-key-maker}|(numeric-key-maker)}[[desc|asc]] default=asc
         при повторном обращении к элементам откроется автоматически.      $reversed_hash[^hash.reverse[]]
     !^хешфайл.cleanup[]  пробежаться по всем элементам и удалить устаревшие.      $selected[^hash.select[key;value](expression)[ $.limit(N) $.reverse(bool) $.default(bool) ]]
           a hash of keys and values for which the condition is true
   
   hashfile
       ^hashfile::open[filename]
       ^hashfile.clear[]
           forget all
       $hashfile.key[value]
           put value
       $hashfile.key[$.value[value] $.expires[VALUE]]
           put value until expires
           expires can be a date, or number of days (0days=forever)
       $hashfile.key retrieve
       ^hashfile.delete[key] delete key
       ^hashfile.delete[] delete files containing data
       ^hashfile.hash[]
           convert to a regular hash
           removing expired pairs along the way
       ^hashfile.foreach[key;value]{body}[[delimiter]|{delimiter executed before each non-empty non-first body}]
       ^hashfile.release[]
           write data and release locks.
           next access to elements will reopen automatically.
       ^hashfile.cleanup[]
           iterate all elements and delete expired ones.
   
     пример:      example:
     $sessions[^hashfile::open[/db/sessions]]      $sessions[^hashfile::open[/db/sessions]]
      
     $sid[^math:uuid[]]      $sid[^math:uuid[]]
     $sessions.$sid[$.value[$uid] $.expires(1)]      $sessions.$sid[$.value[$uid] $.expires(1)]
     $uid[$sessions.$sid]      $uid[$sessions.$sid]
   
 !form  array
     [берётся первый элемент из одноимённых из GET, потом первый из POST]      in expression
     !$form:поле = string/file           logical value means "not empty?"
     !$form:nameless = поле со значением поля без имени "?value&...", "...&value&...", "...&value"          numerical value equals count[]
     !$form:qtail = строка со значением текста после второго "?xxxxx", если там не было ',' [imap]      $array.index, $array.(expression)
     !$form:fields = hash со всеми полями формы          returns the value at the given index
     !$form:tables.поле = table с одним столбцом "field" со значениями "поля"      $array.index[value], $array.(expression)[value]
     !$form:files.поле = hash со значениями полей типа файл, ключи - 0, 1, ..., значение - файл          assigns a value by index
     !$form:imap = хэш с ключами 'x' и 'y'      $array[value;value;...]
         со значением ?1,2 приписки при использовании server-site image map          creates an array with the given values
       ^array::create[]
 !env      ^array::create[value;value;...]
     !$env:переменная          creates an array with the given values or an empty array
     !$env:PARSER то же самое, что показывается при запуске parser.cgi      ^array::copy[array or hash with numeric keys]
           copies an array or a hash with numeric keys
 !cookie      ^array.add[array or hash with numeric keys]
     !$cookie:имя считать старое или свежезаданное          adds elements from another array or hash, overwriting values for matching indexes
     !$cookie:имя[значение] на 90 дней      ^array.join[array or any hash]
     !$cookie:имя[$.value[значение]  $.expires[ЗНАЧЕНИЕ] $.secure(true)]          appends elements from another array or hash to the end of the array
     !значение поля expires может быть 'session', date, или число дней(0дней=session)      ^array.append[value;value;...]
     ! если дата, она будет преобразована к формату "Sun, 25-Aug-2002 12:03:45 GMT"          appends elements to the end of the array
     ! можно устанавливать bool свойства, например $.secure(true), $.httponly(true)      ^array.insert(index)[value;value;...]
     !$cookie:fields = hash со всеми cookies          inserts elements at the specified position in the array
       ^array.left(n)
           returns a new array of the first n elements
 !request      ^array.right(n)
     !$request:query              returns a new array of the last n elements
     !$request:body unprocessed POST request body      ^array.mid(m;n)
     !$request:uri          returns a new array containing n initialized elements starting from position m
     !$request:document-root      ^array.delete(index)
         каталог, относительно которого считаются пути в parser, по-умолчанию = $env:DOCUMENT_ROOT          deletes an array element, leaving an empty spot
         можно изменить, если на hosting что-то неудобно настроено      ^array.remove(index)
     !$request:argv = hash с параметрами коммандной строки. ключи 0, 1, ... [0 -- имя обрабатываемого файла].          deletes an element and shifts subsequent elements to fill the gap
     X!$request:browser  это hash, поля:      ^array.push[value]
         !$type = ie/nn и !$version = номер, скажем 5.5                 adds an element to the end of the array
     X$request:user      ^array.pop[]
     X$request:password          returns the last element and removes it from the array
     !$request:charset      ^array.contains(index)
         Кодировка исходного документа           checks if an element exists at the given index (bool)
         !используется при upper/lower и match[][i]      ^array::sql{query}[ $.sparse(false|true) $.distinct(false|true) $.limit(n) $.offset(n) $.type[hash|string|table] ]
         ПРЕДУПРЕЖДЕНИЕ: класс form получает свои поля после обработки всех auto класса MAIN          creates an array based on a database query
         поэтому необходимо задать $request/response:charset в одном из них. не после.          $.sparse(false), default - create a normal array. Row values from the query are added sequentially
           $.sparse(true) - create a sparse array. The first column must contain indexes
 !response          at which values will be placed (similar to ^hash::sql{})
     !$response:поле[значение]  и можно считать старое -- $response:поле          result is an array of hash (keys=column names of the rest of the answer) or
         !значение может быть string а может быть hash:          string = each element's value is a string (need exactly two columns), or
         ! $value[abc] field: {abc}<<часть          table = each element's value is a table
         ! $attribute[zzz] field: abc; {attribute=zzz}<<часть      ^array.keys[[column name for keys]]
         !значение поля или атрибута может быть string или date          a table of one 'key' column (or as provided) with the indexes of initialized elements
         ! если дата, она будет преобразована к формату "Sun, 25-Aug-2002 12:03:45 GMT"      ^array.count[]
     !$response:headers накопленные поля          the number of initialized elements in the array
     !$response:body[DATA]  замещает стандартный ответ      ^array.count[all]
     !$response:download[DATA]  замещает стандартный ответ,           the total number of elements, including uninitialized ones
         выставляет флаг, заставляющий browser предложить download      ^array.foreach[index;value]{code}[[delimiter]|{delimiter executed before each non-empty non-first body}]
     !$response:status          iterates over all initialized elements
     !^response:clear[] забыть все заданные response поля      ^array.for[index;value]{code}[[delimiter]|{delimiter executed before each non-empty non-first body}]
     !$response:charset          iterates over all elements
         кодировка клиента т.е. та,       ^array.at[first|last][[key|value|hash]]
         1) из которой будут перекодированы $form:поля после забирания из browser'а      ^array.at([-]number)[[key|value|hash]]
         2) в которую документ будет перекодирован перед отдаванием в browser          accesses an array element by its ordinal number
         3) в которую будет перекодирован текст языка uri      ^array.set[first|last][value]
         не добавляет к content-type ничего, если хочется, это надо сделать вручную      ^array.set([-]number)[value]
         ПРЕДУПРЕЖДЕНИЕ: класс form получает свои поля после обработки всех auto класса MAIN          sets the value of an array element by ordinal number
         поэтому необходимо задать $request/response:charset в одном из них. не после.      ^array.compact[]
           removes uninitialized elements
       ^array.compact[undef]
           removes uninitialized and empty elements
       ^array.sort[key;value]{{string-key-maker}|(numeric-key-maker)}[[desc|asc]] default=asc
           sorts the array
       $reversed_array[^array.reverse[]]
           returns a new array with elements in reverse order
       $selected[^array.select[key;value](expression)[ $.limit(N) $.reverse(bool) ]]
           selects array elements for which the condition is true
   
   date
       date type can be used in expressions, substituting the number of days since epoch [1 January 1970 (UTC)], fractional
       the string value is in local time, numerically in UTC, range from 0000-00-00 00:00:00 to 9999-12-31 23:59:59
       by default the OS-defined timezone is used
   
       ^date::now[]
       ^date::now(days offset)
           returns now+offset
       ^date::today[]
           date at 00:00:00 of the current day
       ^date::today(integer days offset)
           date at 00:00:00 of current day+offset
       ^date::create(days since epoch)
       ^date::create(year;month[;day[;hour[;minute[;second[;TZ]]]]])
       ^date::create[date in format %Y-%m-%d %H:%M:%S]
           convenient creation from a value from a database
           format1: %Y[-%m[-%d[ %H[:%M[:%S]]]]]
           format2: %H:%M[:%S]
       ^date::create[date in format %Y-%m-%dT%H:%M[:%S]TZ]
           for creation from ISO 8601 format
           TZ format: Z(UTC) or +-hour[:minute] (offset from UTC)
       ^date::unix-timestamp()
       ^date.unix-timestamp[]
       $date.year month day hour minute second weekday yearday(0...) daylightsaving TZ weekyear
           TZ="" << local zone
       $date.year month day hour minute second can be set to new values, others are read-only
       ^date.double[] ^date.int[]
           the number of days since epoch [1 January 1970 (UTC)], fractional or truncated
       ^date.roll[year|month|day](+-offset)
           shifts the date
       ^date.roll[TZ;New zone]
           says that the date is in such a timezone: affects .hour & Co
       ^date:roll[TZ;New zone]
           says that by default all dates are in that timezone
       ^date.sql-string[[datetime|date|time]]
           datetime or without parameter - %Y-%m-%d %H:%M:%S
           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)
           returns a named table, columns: year, month, day, weekday
       ^date:last-day(year;month)
           returns the last day of the month
       ^date.last-day[]
           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] $.append(false)]]
       ^file:delete[filename]
       ^file:find[filename][{if not found}]
       ^file:list[path[;pattern-string|pattern-regex]]
           table with columns name dir
       ^file:list[path;$.filter[pattern-string|pattern-regex] $.stat(true)]
           table with columns name dir size [mca]date
       ^file::load[text|binary;big.zip[;domain_press_release_2001_03_01.zip][;options]]
       ^file::create[text|binary;filename;data]
       ^file::create[text|binary;filename;data[;$.charset[charset of the created file] $.content-type[...]]]
       ^file::create[string-or-file-content[;$.name[name] $.mode[text|binary] $.content-type[...] $.charset[...]]]
       $loaded_file.size
       $loaded_or_created_file.mode = text/binary
       ^file::stat[filename]
       $stated_or_loaded_file.size .adate .mdate .cdate
       ^file::cgi[[text|binary;]filename[;env hash +options[;1cmd[;2line[;3ar[;4g[;5s]]]]]]]
           any argument can be string or array of strings
           the returned header is split into $fields
           $status
           $stderr
       ^file::exec[[text|binary;]filename[;env hash[;1cmd[;2line[;3ar[;4g[;5s;...under unix max 50 args]]]]]]]
           any argument can be string or array of strings
           options:
               $.stdin[text|file] if empty, disables automatic passing of HTTP-POST data
       ^file:move[oldfilename;newfilename]
           can rename and move directories [win32: but not across disk boundaries]
           directories for dest are created with 775 permissions
           source directory is removed if empty after move
       ^file:copy[filename;copy_filename[; $.append(1) ]]
           can only copy files
       ^file:lock[filename]{code}
           the file is created if necessary
           locked
           code executed
           unlocked
       ^file:dirname[/a/some.tar.gz|file]=/a (works like *nix command)
       ^file:dirname[/a/b/|file]=/a (works like *nix command)
       ^file:basename[/a/some.tar.gz|file]=some.tar.gz (like *nix)
       ^file:basename[/a/b/|file]=b (like *nix)
       ^file:justname[/a/some.tar.gz|file]=some.tar
       ^file:justext[/a/some.tar.gz|file]=gz
       /some/page.html: ^file:fullpath[a.gif] => /some/a.gif
       ^file.sql-string[]
           inside ^connect gives a correctly escaped string that can be used in queries
       ^file::sql{query}[[ $.name[filename_for_download] $.content-type[user content-type] ]]
           the query result should be "one row".
           columns:
           first column - data
           if second exists - filename
           if third - content-type
       ^file.base64[ $.pad(bool) $.wrap(bool) $.url-safe(bool) ]
           encode
       ^file:base64[filename[; $.pad(bool) $.wrap(bool) $.url-safe(bool) ]]
           encode
       ^file::base64[encoded string[; $.pad(bool) $.strict(bool) $.url-safe(bool) ]]
           decode
       ^file::base64[mode;filename;encoded string[; $.content-type[...] $.pad(bool) $.strict(bool) $.url-safe(bool) ]]
           decode
       ^file:crc32[filename]
           calculates crc32 of the specified file
       ^file.crc32[]
           calculates crc32 of the object
       ^file.md5[], ^file:md5[filename]
           returns the file's digest, 16 bytes as a string,
           bytes in hex, contiguous, lowercase
   
   image
       $image[^image::measure[DATA[; $.exif(bool) $.xmp(bool) $.xmp-charset[] $.video(bool) ]]]
           checks the file extension case-insensitively
           can measure gif, jpg, tiff, bmp, webp and mp4 (mov)
       $image.exif << hash after measure jpeg with exif information and $.exif(true)
           $image.exif.DateTime & co
               [full list see https://exiftool.org/TagNames/EXIF.html]
           numbers as int/double,
           dates as date,
           enumerations as hash with keys 0..count-1
       $image.src .width .height
       $image.line-width  number=line width
       $image.line-style  string=line style '*** * '='*** * *** * *** * '
       ^image.html[[hash]]
           <img ...>
       ^image::load[background.gif]
           only gif so far
       ^image::create(width X;height Y[;background color default white]])
       ^image.line(x0;y0;x1;y1;0xffFFff)
       ^image.fill(x;y;0xffFFff)
       ^image.rectangle(x0;y0;x1;y1;0xffFFff)
       ^image.bar(x0;y0;x1;y1;0xffFFff)
       ^image.replace(hex-color1;hex-color2)[table x:y polygon_vertices]
       ^image.polyline(color)[table x:y points]
       ^image.polygon(color)[table x:y polygon_vertices]
       ^image.polybar(color)[table x;y polygon_vertices]
       ^image.font[set_of_letters;font_file.gif][(space_width[;char_width])]
           the character height = image height/number of letters in the set
           if char_width is specified, then monospaced, if 0, char_width = gif width
       ^image.font[set_of_letters;font_file.gif;
           $.space(space_width)      // default = gif width
           $.width(char_width)       // see above, default proportional
           $.spacing(letter_spacing) // default = 1
       ]
       ^image.text(x;y)[text] AS_IS
       ^image.length[text] AS_IS
       ^image.gif[optional filename]
           encodes to FILE with content-type=image/gif the filename will be used by $response:download
       ^image.arc(center x;center y;width;height;start in degrees;end in degrees;color)
       ^image.sector(center x;center y;width;height;start in degrees;end in degrees;color)
       ^image.circle(center x;center y;r;color)
       ^image.copy[source](src x;src y;src w;src h;dst x;dst y[;dest w[;dest h[;tolerance]]])
           if dest_w/dest_h are specified, resizes the piece
               when reducing size, does resample
               only suitable for simplifying low-color graphics like charts/pie,
               not suitable for thumbnails
           if dest_h is not specified, aspect ratio is kept
           tolerance - a number [square distance in RGB space to the target color],
               defining how greedy the color approximation from the palette is [default=150]
               smaller - more accurate but colors run out quickly
               larger - less accurate approximation, but covers a bigger part
       ^image.pixel(x;y)[(color)]
           get or set pixel color
   
   regex
       in expression
           logical value is always true
           numerical value is equal to the number of bytes of the compiled pattern
       ^regex::create[pattern-string|regex][[search options]]
       ^pattern.size[]
           number of bytes of the compiled pattern
           if the value is very large - it is worth consulting pcre documentation and possibly rewriting the pattern
       ^pattern.study_size[]
           size of the study-structure. if == 0 - the pattern cannot be "studied"
       $pattern.pattern
           the text of the pattern
       $pattern.options
           the string with the original text of the options
   
   console
       $console:timeout
       $console:line
           read/write string
   
   cookie
       $cookie:name read old or newly set cookie
       $cookie:name[value] for 90 days
       $cookie:name[$.value[value] $.expires[VALUE] $.secure(true) $.domain[domain name] $.httponly(true)]
           the expires field value can be 'session', a date, or a number of days (0days=forever)
           if it's a date, it will be converted to "Sun, 25-Aug-2002 12:03:45 GMT"
       $cookie:fields
           hash with all cookies
   
   curl
       ^curl:load[[
           $.url[http://URL]
           $.timeout(N)
           $.ssl_verifypeer(0)
           $.mode[text|binary] type of the created file
       ]]
           downloads a file from a remote server, can be called multiple times within one session;
           any libcurl option can be specified, option names in lowercase without the CURLOPT_ prefix
       ^curl:options[[
           $.library[libcurl.so.4]
           $.charset[UTF-8]
           ...
       ]]
           subsequent ^curl:load calls inherit the specified options, the path to libcurl must be set before using curl
       ^curl:session{code}
           creates a cURL session, common options can be set, multiple downloads performed
       ^curl:info[name], ^curl:info[]
           information about the last request (a value or a hash)
       ^curl:version[]
           the version of the cURL library in use
   
   env
       $env:variable
       $env:fields hash with environment variables
       $env:PARSER_VERSION parser version
   
   form
       [the first element with the same name is taken from GET, then from POST]
       $form:field
           string/file
       $form:nameless
           field with a value from a nameless parameter "?value&...", "...&value&...", "...&value"
       $form:qtail
           string with the value after the second "?xxxxx" if there was no ',' [imap]
       $form:fields
           hash with all form fields
       $form:elements.field
           array with all values of the field - both string and file
       $form:tables.field
           table with one column "field" containing the values for multiple entries
       $form:files.field
           hash with file-type field values, keys - 0, 1, ..., value - file
       $form:imap
           a hash with keys 'x' and 'y' with ?1,2 suffixes when using server-side image map
   
   inet
       ^inet:ntoa(long)
       ^inet:aton[IP]
       ^inet:name2ip[name][[ $.ipv[4|6|any] $.table(true) ]]
           direct conversion of a name to an IP address
       ^inet:ip2name[ip][ $.ipv[4|6|any] ]
           reverse conversion from IP address to name
       ^inet:hostname[]
           host name
   
   json
       ^json:parse[-json-string-[;
           $.depth(maximum depth, default == 19)
           $.double(false)              disable built-in parsing of floating-point numbers (enabled by default)
                                        in this case they will appear in the resulting object as strings
           $.int(false)                 disable built-in parsing of integers (enabled by default)
                                        in this case they will appear in the resulting object as strings
           $.distinct[first|last|all]   how duplicate keys in objects are handled
                                        first - keep the first encountered element
                                        last  - keep the last encountered element
                                        all   - keep all elements. starting from the 2nd,
                                                 they get numeric suffixes (key_2 etc)
                                        by default duplicate keys cause an exception
           $.object[method-junction]    user method[key;object], called for all parsed
                                        objects and object keys; method returns a new object
           $.array[method-junction]     user method called for arrays
           $.taint[taint language]      sets the transformation language for all result strings
       ]]
           parses a json-string into a hash
   
       ^json:string[system or user object[;
           $.skip-unknown(false)    disable exception and output 'null' when serializing objects of types
                                    other than void, bool, string, int, double, date, table, hash, and file
           $.indent(true)           format the resulting string with indentation according to nesting depth
           $.date[sql-string|gmt-string|iso-string|unix-timestamp]
                                    date output format, default = sql-string
           $.table[object|array|compact]
                                    format for tables, default=object
                                    object: [{"c1":"v11","c2":"v12",...},{"c1":"v21","c2":"v22",...},...]
                                    array:  [["c1","c2",...] || null (for nameless),["v11","v12",...],...]
                                    compact: ["v11" || ["v11","v12",...],...]
           $.file[text|base64|stat] output file content in the specified mode (by default file content
                                    is not included in output)
           $.xdoc[hash]             parameters for converting xdoc to string (as in ^xdoc.string[])
           $.type[method-junction]  any type can be output using a user method
                                    that must take 3 parameters: key, object of that type, and options
                                    of the ^json:string[] call
           $._default[method]       user method, called to output all user-class objects.
                                    The method must take 3 parameters: key, object, and call options.
           $._default[method name]  method name of a user method, if present it will be called for serialization
           $.void[null|string]      undefined value will be output as null (default)
                                    or as an empty string
       ]]
           serializes a system or user object into a json-string
   
 !mail  mail
     !$mail.received=MESSAGE:      $mail.received=MESSAGE:
         .from          .from
         .reply-to          .reply-to
         .subject          .subject
         .date класса date          .date of class date
         .message-id          .message-id
         .raw[          .raw[
             .СЫРОЕ_ПОЛЬЗОВАТЕЛЬСКОЕ-ПОЛЕ-ЗАГОЛОВКА              .RAW_USER_HEADER_FIELD
         ]          ]
         $.{text|html|file#}[ << нумеруется как и в mail:send (text, text2, ...) (file, file2, ...)          $.{text|html|file#}[ << numbered as in mail:send (text, text2, ...) (file, file2, ...)
             $.content-type[              $.content-type[
                 $.value[{text|...|x-unknown}/{plain|html|...|x-unknown}]                  $.value[{text|...|x-unknown}/{plain|html|...|x-unknown}]
                 [$.charset[windows-1251]] << в каком пришло, сейчас уже перекодировано                  [$.charset[windows-1251]] << in which it arrived, now already transcoded
                 $.ПОЛЬЗОВАТЕЛЬСКИЙ-ПАРАМЕТР-ЗАГОЛОВКА                  $.USER_DEFINED_HEADER_FIELD
             ]              ]
             $.description              $.description
             $.content-id              $.content-id
             $.content-md5              $.content-md5
             $.content-location              $.content-location
             .raw[              .raw[
                 .СЫРОЕ_ПОЛЬЗОВАТЕЛЬСКОЕ-ПОЛЕ-ЗАГОЛОВКА                  .RAW_USER_HEADER_FIELD
             ]              ]
             $.value[строка|FILE]              $.value[string|FILE]
         ]          ]
         $.message#[MESSAGE] (message, message2, ...)          $.message#[MESSAGE] (message, message2, ...)
   
     !^mail:send[      ^mail:send[
         $.options[-odd]          $.options[-odd]
                 unix: строка, которая будет добавлена к команде запуска sendmail              unix: a string that will be added to the sendmail startup command
                     -odd означает "быстро поставь в очередь без проверки email"                  -odd means "quickly put in the queue without email checking"
                 win32: игнорируется              win32: ignored
         $.charset[кодировка заголовка и текстовых блоков]           $.charset[the encoding of the headers and text blocks]
         $.any-header-field           $.any-header-field
         $.text[string]          $.text[string]
         $.text[          $.text[
            $.any-header-field               $.any-header-field
            $.value[string]              $.value[string]
         ]          ]
         $.html{string}          $.html{string}
         $.html[          $.html[
             $.any-header-field               $.any-header-field
             $.value{string}              $.value{string}
         ]          ]
         $.file#[FILE]          $.file#[FILE]
         $.file#[          $.file#[
             $.any-header-field               $.any-header-field
             $value[FILE]              $value[FILE]
         ]          ]
     ]      ]
     !если charset указан, письмо перекодируется в этот charset          if charset is specified, the email is transcoded to this charset
     !content-type.charset не влияет на перекодирование          content-type.charset does not affect transcoding
     !после имени части может идти # число          after the part name a # number can follow
         ^mail:send[  
 #           по-умолчанию, совпадает с source encoding.      ^mail:send[
 #           задаёт кодировку body  #       by default, matches the source encoding.
             $.charset[windows-1251]   #       sets the body encoding
 #           нет умолчания          $.charset[windows-1251]
             $.content-type[$.value[text/plain] $.charset[windows-1251]]  #       no default
             $.from["вася" <vasya@design.ru>]          $.content-type[$.value[text/plain] $.charset[windows-1251]]
             $.to["петя" <petya@design.ru>]          $.from["vasya" <vasya@design.ru>]
             $.subject[пойдём пивка]          $.to["petya" <petya@design.ru>]
             $.body[          $.subject[subject]
                 слова          $.body[
             ]              text
         ]          ]
     !:send[$.header-field[] $.charset[кодировка письма] $.body[когда body не строка,       ]
         а hash, отсылается multipart письмо]]  
     !если charset указан, письмо перекодируется в этот charset      ^mail:send[$.header-field[] $.charset[mail encoding] $.body[if body is not a string, but a hash, a multipart email is sent]]
     !content-type.charset не влияет на перекодирование          if charset is specified, the email is transcoded to that charset
     !после имени части может идти целое число, части пойдут в порядке чисел.          content-type.charset does not affect transcoding
     !если body указан строкой, то это текст письма, никаких вложений.          after the part name, an integer can follow, parts go in numerical order.
     !если body указан hash, то это части, будут собраны текстовые блоки, затем вложения          if body is a string, then it's just the email text, no attachments.
     !это старый формат, поддерживается для обратной совместимости          if body is a hash, then these are parts, text blocks first, then attachments
     !если имя части начинается со слова text, то это текстовый блок.          this is the old format, supported for backward compatibility
     !если имя части начинается со слова file, то это вложение, формат задания::          if the part name begins with "text", it's a text block.
         !$file[$.format[!uue|!base64] $.value[DATA] $.name[user-file-name]]          if the part name begins with "file", it's an attachment, format:
     !важно: при multipart не указывать content-type              $file[$.format[uue|base64] $.value[DATA] $.name[user-file-name]]
           important: for multipart do not specify content-type
   
         ^mail:send[          ^mail:send[
 #           по-умолчанию, совпадает с source encoding.  #           by default, matches the source encoding
 #           задаёт кодировку body  #           sets the body encoding
             $.charset[windows-1251]               $.charset[windows-1251]
 #           нет умолчания  #           no default
             $.content-type[$.value[text/plain] $.charset[windows-1251]]              $.content-type[$.value[text/plain] $.charset[windows-1251]]
             $.from["вася" <vasya@design.ru>]              $.from["vasya" <vasya@design.ru>]
             $.to["петя" <petya@design.ru>]              $.to["petya" <petya@design.ru>]
             $.subject[пойдём пивка]              $.subject[subject]
             $.body[              $.body[
                 слова                  text
             ]              ]
         ]          ]
   
         ^mail:send[          ^mail:send[
             $.from["вася" <vasya@design.ru>]              $.from["vasya" <vasya@design.ru>]
             $.to["петя" <petya@design.ru>]              $.to["petya" <petya@design.ru>]
             $.subject[пойдём пивка]              $.subject[subject]
             $.body[              $.body[
                 $.text[                  $.text[
 #                   задаёт кодировку body  #                   sets the body encoding
                     $.charset[windows-1251]                      $.charset[windows-1251]
 #                   нет умолчания  #                   no default
                     $.content-type[$.value[text/plain] $.charset[windows-1251]]                      $.content-type[$.value[text/plain] $.charset[windows-1251]]
                     $.body[слова]                      $.body[words]
                 ]                  ]
 #для удобства скриптования можно указать только одну часть, при этом не будет multipart  #               for convenience you can specify only one part, then it won't be multipart
                 $.file[                  $.file[
                    $.value[^file::load[my beloved.doc]]                      $.value[^file::load[my beloved.doc]]
                    $.name[мой любимый.doc]                      $.name[my beloved.doc]
                    $.format[base64]                      $.format[base64]
                 ]                  ]
                 $.file2[                  $.file2[
                    $.value[^file::load[my beloved.doc]]                      $.value[^file::load[my beloved.doc]]
                    $.name[мой любимый.doc]                      $.name[my beloved.doc]
                ]                  ]
             ]              ]
         ]          ]
     !для отправки       under unix, the program with arguments is used, set by
     под unix используется программа с параметрами, задаваемая           $MAIL.sendmail[command]
         $MAIL.sendmail[команда]      if not specified, checks if /usr/sbin/sendmail or
         если не будет задана, проверяется, доступна ли       /usr/lib/sendmail is available and if so, runs with "-t".
         /usr/sbin/sendmail или  
         /usr/lib/sendmail      under Windows, SMTP protocol is used, server is set by
         и, если доступна, то запускается с параметром "-t".      
     под win32 используется SMTP протокол, сервер задаётся   
         $MAIL.SMTP[smtp.domain.ru]          $MAIL.SMTP[smtp.domain.ru]
   
 !image  math
     !$картинка[^image::measure[DATA]]      $math:PI
         смотрит на .ext case insensitive,       ^math:round floor ceiling
         умеет мерить пока только .gif и .jpg .jpeg      ^math:trunc frac
     !$картинка.exif << hash после measure jpeg с exif информацией       ^math:abs sign
         !$image.exif.DateTime & co       ^math:exp log log10
             [полный список см. http://www.ba.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html]      ^math:sin asin cos acos tan atan atan2
         !числа типа int/double,      ^math:degrees radians
         !даты типа date      ^math:pow sqrt
         !перечисления в виде hash с ключами 0..count-1      ^math:random(range_width)
     !$картинка.src .width .height      ^math:convert[number|file](base-from;base-to)[[ $.format[string|file] ]]
     !$картинка.line-width  число=ширина линий      ^math:convert[number|file][alphabet](base-to)[[ $.format[string|file] ]]
        !$картинка.line-style строка=стиль линий '*** * '='*** * *** * *** * '      ^math:convert[number|file](base-from)[alphabet][[ $.format[string|file] ]]
     !^картинка.html[[hash]] = <img ...>          converts a string or file with a number from one numeral system to another
     !^image::load[фон.gif]          the numeral system can be set by an alphabet, a number from 2 to 16 (equivalent to the alphabet 0123456789ABCDEF), or 256 (all ASCII characters)
         только gif пока      ^math:eq(a;b[;max ULP])
     !^image::create(размер X;размер Y[;цвет фона default белый]])          true if difference between doubles less or equal max ULPs (default 3)
     !^картинка.line(x0;y0;x1;y1;0xffFFff)      ^math:uuid[ $.lower(bool) $.solid(bool) ]
     !^картинка.fill(x;y;0xffFFff)  
     !^картинка.rectangle(x0;y0;x1;y1;0xffFFff)  
     !^картинка.bar(x0;y0;x1;y1;0xffFFff)  
     !^картинка.replace(hex-цвет1;hex-цвет2)[table x:y вершины_многоугольника]  
     !^картинка.polyline+(цвет)[table x:y точки]  
     !^картинка.polygon(цвет)[table x:y вершины_многоугольника]  
     !^картинка.polybar(цвет)[table x;y вершины_многоугольника]  
     !^картинка.font[набор_букв;имя_файла_шрифта.gif](ширина_пробела[;ширина_символа])  
         высота символа = высота картинки/количество букв в наборе  
         если указана ширина_символа, то monospaced, если 0, то ширина_символа = ширине gif  
     !^картинка.text(x;y)[текст_надписи] AS_IS  
     !^картинка.length[текст_надписи] AS_IS  
     !^картинка.gif[возможно, имя файла] -- кодирует в FILE с content-type=image/gif  
         имя файла будет использовано при $response:download  
     !^картинка.arc(center x;center y;width;height;start in degrees;end in degrees;color)  
     !^картинка.sector(center x;center y;width;height;start in degrees;end in degrees;color)  
     !^картинка.circle(center x;center y;r;color)  
     !^картинка.copy[source](src x;src y;src w;src h;dst x;dst y[;dest w[;dest h[;tolerance]]])  
         при заданных dest_w/dest_h делает изменение размера кусочка  
             при уменьшении делает resample  
             годится только для уменьшения простой[малоцветной] дребедени вроде графиков/pie,  
             для thumbnais не годится.  
         при не указанном dest_h сохраняет aspect ratio  
         tolerance - некое число[квадрат расстояния в RGB пространстве до искомого цвета],   
         определяющее прожорливость выделялки цветов из палитры [default=150]  
             меньше - точнее приближает цвета, но они быстро кончаются  
             больше - неточно приближает цвет, но бОльшей части хватит  
     !^картинка.pixel(x;y)[(color)]  
         узнать или задать цвет пиксела  
   
 !file  
     !$файл_из_post.name   
     !$файл_из_post.size   
     !$файлtиз_post.text  
     !^файл.save[text|binary;имя файла]  
     !^file:delete[имя файла]  
     !^file:find[имя файла][{когда не нашли}]  
     !^file:list[путь[;шаблон]] = table с колонкой name  
     !^file::load[text|binary;!big.zip[;!domain_press_release_2001_03_01.zip][;опции]]  
     !^file::create[text;имя;^untaint[xml]{data}]  
     !$файл_который_был_loaded.size  
     !^file::stat[имя файла]  
     !$файл_который_был_stated.size !.adate !.mdate !.cdate  
     !^file::cgi[[text|binary;]имя файла[;env hash +options[;1cmd[;2line[;3ar[;4g[;5s]]]]]]]  
         возвращённый заголовок рассыпается на $поля  
         $status  
         $stderr  
     !^file::exec[[text|binary;]имя файла[;env hash[;1cmd[;2line[;3ar[;4g[;5s;...under win32 max 10 args]]]]]]]  
         options:  
             $.stdin[текст]  если текст пуст, отключается автоматическое пересовывание данных HTTP-POST   
     !^file:move[старое имя файла;новое имя файла]   
         можно переименовывать и двигать каталоги[win32: но не через границу дисков]  
         каталоги для dest создаются с правами 775  
         каталог старого файла стирается, если после move он остаётся пуст  
     !^file:copy[имя файла;имя копии файла]   
         можно копировать только файлы  
     !^file:lock[имя файла]{код}  
         файл при необходимости создаётся  
         блокируется  
         выполняется код  
         разблокируется  
     Xchmod[...] НЕТ И НЕ БУДЕТ, ЧТОБЫ НЕ МОГЛИ СДЕЛАТЬ executable и запустить, даже если ftp запрещает chmod.  
     !^file:dirname[/a/some.tar.gz]=/a  
     !^file:dirname[/a/b/]=/a  
     !^file:basename[/a/some.tar.gz]=some.tar.gz  
     !^file:justname[/a/some.tar.gz]=some.tar  
     !^file:justext[/a/some.tar.gz]=gz  
     !/some/page.html: ^file:fullpath[a.gif] => /some/a.gif  
     !^файл.sql-string[] внутри ^connect даст правильно escaped строку, которую можно в запрос отдать  
     X^file::sql[[имя_файла_для_download]]{}  
     !^file::sql{}[[  
         $.name[имя_файла_для_download]  
         $.content-type[пользовательский content-type]  
     ]]  
         результат запроса должен быть "одна строка".  
         колонки:  
         первая колонка - данные  
         если есть вторая - это имя файла  
         если есть третья - это content-type  
     !^файл.base64[] encode  
     !^file:base64[имя файла] encode  
     !^file::base64[encoded string] decode  
     !^file:crc32[имя файла]  
        вычисляет crc32 файла с указанным именем  
     !^файл.crc32[]  
                 вычисляет crc32 объекта  
         !^файл.md5[]  
         !^file:md5[имя файла]  
         выдает digest файла, длиной 16 байт в виде строки,   
         где байты digest выданы в hex виде, впритык, в нижнем регистре  
   
 !math  
     !$math:PI  
     !^math:round floor ceiling   
     !^math:trunc frac  
     !^math:abs sign   
     !^math:exp log   
     !^math:sin asin cos acos tan atan   
     !^math:degrees radians  
     !^math:pow sqrt  
     !^math:random(ширина диапазона)  
     !^math:uuid[]  
         22C0983C-E26E-4169-BD07-77ECE9405BA5          22C0983C-E26E-4169-BD07-77ECE9405BA5
         win32: пользуется cryptapi          win32: uses cryptapi
         unix: пользуется /dev/urandom,           unix: uses /dev/urandom,
             если нет, /dev/random,               if not present, /dev/random,
             если нет, rand               if not, rand
             [на solaris /dev/random можно добавить]      ^math:uuid7[ $.lower(bool) $.solid(bool) ]
     !^math:uid64[]          0193CBF0-7898-7000-A391-AC513CC15658
        BA39BAB6340BE370          https://www.rfc-editor.org/rfc/rfc9562.html#name-uuid-version-7
     !^math:md5[string]      ^math:uid64[ $.lower(bool) ]
         выдает digest строки, длиной 16 байт в виде строки,           BA39BAB6340BE370
         где байты digest выданы в hex виде, впритык, в нижнем регистре      ^math:md5[string]
     !^math:crypt[password;salt]          returns the digest of the string, 16 bytes as a string,
        salt prefix $apr1$ вызывает встроенный MD5 алгоритм,           bytes in hex, contiguous, lowercase
          если нет тела salt, оно создаётся случайным      ^math:crypt[password;salt]
        $1$ вызывает MD5 алгоритм функции OS 'crypt', если поддерживается [заведомо нет на solaris].          salt prefix $apr1$ triggers built-in MD5 algorithm,
        другие salt читайте документацию по функции OS 'crypt'.          if salt body is empty, it is generated randomly
     !^math:crc32[string]          $1$ calls the OS 'crypt' MD5 algorithm if supported.
        вычисляет crc32 строки          for other salts see OS 'crypt' documentation.
     !^math:sha1[string]      ^math:crc32[string]
           calculates crc32 of the string
 !inet      ^math:sha1[string]
     !^inet:ntoa(long)      ^math:digest[[md5|sha1|sha256|sha512];string or file][[ $.format[hex|base64|file] $.hmac[key string|key file] ]]
     !^inet:aton[IP]          combines the ability to use various cryptographic hashing algorithms.
           $.hmac[key] for verifying the integrity of transmitted data
 !date  
     !время типа time можно использовать в выражениях, подставляет   memory
         количество дней с epoch [1 января 1970 (UTC)], дробное      ^memory:compact[]
     !всё происходит в localtime,           collect garbage, freeing space for new data (warning: process memory is never released)
     !временная зона задаётся вне parser средствами OS          useful before XSL transform
     $date:UTC-offset  сколько дней надо прибавить,чтобы попасть в local время      ^memory:auto-compact(frequency)
     $date:TZ  наш часовой пояс, дробное, в часах (где-то есть с точностью до получаса)          sets automatic garbage collection frequency, from 0 (off) up to 5 (max)
     !^date::now[]  
     !^date::now(смещение в днях) выдаёт сейчас+смещение  reflection
     !^date::create(дней с epoch) // старое имя set      ^reflection:create[class;constructor[;pa[;ra[;ms]]]]
     !^date::create(year;month[;day[;hour[;minute[;second]]]]) // старое имя set          calls the specified class constructor (no more than 100 parameters)
     !^date::create[дата в формате %Y-%m-%d %H:%M:%S]      ^reflection:create[ $.class[name] $.constructor[name] $.arguments[ $.1[pa] $.2[ra] $.3[ms] ] ]
         для удобного создания по значению из базы          calls the specified class constructor
         формат1: %Y[-%m[-%d[ %H[:%M[:%S]]]]]      ^reflection:classes[]
         формат2: %H:%M[:%S]          a hash of all classes. key = class name, value can be methoded (a class with methods) or void
     !^date::unix-timestamp()      ^reflection:class[object]
     !^дата.unix-timestamp[]          the class of the given object
     !$дата.year month day  hour minute second  weekday yearday(0...) daylightsaving TZ weekyear      ^reflection:class_name[object]
         read-only          the class name of the given object
         TZ="" << локальная зона      ^reflection:base[object]
     !^дата.roll[year|month|day](+-смещение) сдвигает дату          the parent class of the given object
     !^дата.roll[TZ;Новая зона] говорит, что дата в таком-то часовом поясе: влияет на .hour & Co      ^reflection:base_name[object]
     !^дата.sql-string[] %Y-%m-%d %H:%M:%S          the parent class name of the given object
         where published='^дата.sql-string[]'      ^reflection:class_by_name[class name]
     !^date:calendar[rus|eng](год;месяц) выдаёт неименованную таблицу           obtains the class by name
         столбцы: 0..6, week, year      ^reflection:class_alias[class name;new class name]
     !^date:calendar[rus|eng](год;месяц;день) выдаёт именнованную таблицу          sets an alias for the specified class
         столбцы: year, month, day, weekday      ^reflection:def[class;class name]
     !^date:last-day(год;месяц) вернёт последний день месяца          checks if the class exists
     !^дата.last-day[] вернёт последний день месяца $дата      ^reflection:methods[class]
     !^дата.gmt-string[]  Fri, 23 Mar 2001 09:32:23 GMT          a hash with a list of methods of the specified class, values are strings 'native' or 'parser'
       ^reflection:method[class or object;method name]
           returns the junction-method of the class or object
       ^reflection:filename[object or class or method]
           returns the filename where the object, class or method is defined
       ^reflection:fields[class or object]
           a hash with the list of static fields of the specified class or dynamic fields of the specified object
       ^reflection:fields_reference[object]
           an editable hash of the dynamic fields of the specified object
       ^reflection:field[class or object;field name]
           returns the value of the specified field of the class or object. getters are ignored.
       ^reflection:copy[source;destination]
           copies fields from one object or class to another
       ^reflection:uid[class or object]
           returns the identifier of the object or class
       ^reflection:method_info[class;method]
           a hash with parameters of the specified class method
           $.inherited[class] name of the class where the method was defined (returned only if the method was defined in an ancestor)
           $.overridden[class] name of the class where the method was defined (returned only if the method was defined in an ancestor)
           for native classes a hash is returned:
               .min_params(minimum required number of parameters)
               .max_params(maximum possible number of parameters)
               .call_type[dynamic|static|any]
           for parser classes a hash is returned:
               key is parameter number (0, 1, ...), value is parameter name
       ^reflection:dynamical[[object or class, caller if absent]]
           returns true if the method was called from a dynamic context when passing
           a parameter returns true if a dynamic object was passed, false if a class
       ^reflection:delete[class or object;variable name]
           deletes the variable with the specified name in the specified class or object
       ^reflection:is[element name;class name][[context]]
           analogous to the 'is' operator, allowing to determine if the element is code.
       ^reflection:tainting[[language|tainted|optimized];string]
           a string in which each character of the original string corresponds to a character with a transformation code
       ^reflection:stack[ $.args(false/true) $.locals(false/true) $.limit(n) $.offset(o)]
           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
           hash with command-line parameters. keys 0, 1, ... [0 - name of the processed file]
       $request:charset
           the source document encoding
           used in upper/lower and match[][i]
           WARNING: you must set $request/response:charset before using form class fields
       $request:method
           request method (GET|POST|PUT)
       $request:body
           POST-request body as text
       $request:body-file
           POST-request body as a file
       $request:body-charset
           POST-request encoding
       $request:headers
           hash with request headers (without HTTP_ prefix)
   
   response
       $response:field[value] and can read old - $response:field
           the value can be string or hash:
               $value[abc] field: {abc}<<part
               $attribute[zzz] field: abc; {attribute=zzz}<<part
           field or attribute value can be string or date
               if date, it will be converted to "Sun, 25-Aug-2002 12:03:45 GMT"
       $response:headers
            accumulated fields
       $response:body[DATA]
           replaces the standard response
       $response:download[DATA]
           replaces the standard response, sets a flag causing the browser to suggest download
       $response:status
       ^response:clear[] forget all set response fields
       $response:charset
           client encoding, i.e.:
           1) from which $form: fields will be transcoded after retrieval from browser
           2) into which the document will be transcoded before sending to browser
           3) into which URI language text will be transcoded
           does not add anything to content-type; if needed, do it manually
           WARNING: you must set $request/response:charset before using form class fields
   
   status
       $status:sql
           cache table
               url    time
               url    time
               url    time
       $status:stylesheet
           cache table
               file    time
               file    time
               file    time
       $status:rusage hash
           utime user time used
           stime system time used
           maxrss max resident set size
           ixrss integral shared text memory size
           idrss integral unshared data size
           isrss integral unshared stack size
           tv_sec
           tv_usec
              $s[$status:rusage]
              ^s.tv_sec.format[%.0f].^s.tv_usec.format[%06.0f]
       $status:memory hash
           used
               includes some pages that were allocated but never written
           free
           ever_allocated_since_compact
               return the number of bytes allocated since the last collection
           ever_allocated_since_start
               return the total number of bytes [EVER(c)PAF] allocated in this process,
               never decreases
       $status:pid
           process id
       $status:tid
           thread id
       $status:mode
           working mode, cgi|console|mail|httpd|apache|isapi
       $status:log-filename
           path to parser3.log error log
   
 xdoc(xnode)  xdoc(xnode)
     !$xdoc.search-namespaces hash, where keys=prefixes, values=urls      $xdoc.search-namespaces hash, where keys=prefixes, values=urls
       
     DOM1 attributes:      DOM1 attributes:
     !readonly attribute DocumentType doctype      readonly attribute DocumentType doctype
     Xreadonly attribute DOMImplementation implementation      readonly attribute Element documentElement
     !readonly attribute Element documentElement  
   
     DOM1 methods:      DOM1 methods:
     !Element createElement(in DOMString tagName)      Element createElement(in DOMString tagName)
     !DocumentFragment createDocumentFragment()      DocumentFragment createDocumentFragment()
     !Text createTextNode(in DOMString data)      Text createTextNode(in DOMString data)
     !Comment createComment(in DOMString data)      Comment createComment(in DOMString data)
     !CDATASection createCDATASection(in DOMString data)      CDATASection createCDATASection(in DOMString data)
     !ProcessingInstruction createProcessingInstruction(in DOMString target,in DOMString data)      ProcessingInstruction createProcessingInstruction(in DOMString target,in DOMString data)
     !Attr createAttribute(in DOMString name)      Attr createAttribute(in DOMString name)
     !EntityReference createEntityReference(in DOMString name)      EntityReference createEntityReference(in DOMString name)
     !NodeList getElementsByTagName(in DOMString tagname)      NodeList getElementsByTagName(in DOMString tagname)
   
     DOM2 some methods:      DOM2 some methods:
     !^.getElementById[elementId] = xnode      ^.getElementById[elementId] = xnode
         The DOM implementation must have information that says which attributes are of type ID.           The DOM implementation must have information that says which attributes are of type ID.
         Attributes with the name "ID" are not of type ID unless so defined.           Attributes with the name "ID" are not of type ID unless so defined.
         Implementations that do not know whether attributes are of type ID or not           Implementations that do not know whether attributes are of type ID or not
         are expected to return null.          are expected to return null.
   
     !кодировка строк и умолчание для $.encoding       String encoding and default for $.encoding equals the current output page encoding, $response:charset
     !равно текущей кодировке выходной страницы,  
         $response:charset  
     ::sql{...}      ::sql{...}
     !::create[[URI]]{<?xml?><string/>} старое имя 'set'      ::create[[URI]]{<?xml?><string/>} old name 'set'
     !::create[[URI]][qualifiedName]      ::create[[URI]][qualifiedName]
       URI default = disk path to requested document          URI default = disk path to requested document
       для каталогов конечный / обязателен          for directories a trailing / is mandatory
     !::create[file] can be usable:      ::create[file] can be usable:
         $f[^file::load[binary;http://;some HTTP options here...]]          $f[^file::load[binary;http://;some HTTP options here...]]
         $x[^xdoc::create[$f]]          $x[^xdoc::create[$f]]
     !::load[file.xml[;опции]]      ::load[file.xml[;options]]
     !.transform[rules.xsl|xdoc][[params hash]] выдаёт dom      .transform[rules.xsl|xdoc][[params hash]] returns dom
         шаблон кэшируется, кэш обновляется при изменении даты файла шаблона,          the template is cached, cache is updated if the template file date changes,
         или изменении даты файла "имя шаблона.stamp"[проверка даты stamp приоритетнее]          or the date of "template_name.stamp" changes [stamp date check has priority]
         <xsl:output          <xsl:output
         !method = "xml" | "html" | "text"          method = "xml" | "html" | "text"
             X| qname-but-not-ncname           version = nmtoken
         !version = nmtoken           encoding = string
         !encoding = string           omit-xml-declaration = "yes" | "no"
         !omit-xml-declaration = "yes" | "no"          standalone = "yes" | "no"
         !standalone = "yes" | "no"          cdata-section-elements = qnames
         X[передал, но xsltSaveResultTo не использовал его]doctype-public = string           indent = "yes" | "no"
             Xесли начинается с "-//W3C//DTD XHTML" то будет выводить XHTML          media-type = string />
         X[передал, но xsltSaveResultTo не использовал его]doctype-system = string           parameters are passed as is, not xpath expressions
         !cdata-section-elements = qnames   
         !indent = "yes" | "no"      .string[[output options]]
         !media-type = string />       .save[file.xml[;output options]] with header
         !параметры передаются как есть, не xpath выражения      .file[[output options]] = file
           output options are identical to xsl:output attributes
     !.string[[output options]]              [exception: cdata-section-elements ignored]
     !.save[file.xml[;output options]] с шапкой          returns media-type when substituting $response:body[here]
     !.file[[output options]] = file  
         output options идентичны атрибутам xsl:output       if the document is referenced as:
             [исключение: игнорируется cdata-section-elements, нужно будет, сделаю]          parser://method/param/to/that/method
         выдаёт media-type при подстановке $response:body[сюда]          then ^MAIN:method[/param/to/that/method] is used as the document
           [note: the parameter always comes with a leading /, even if there were no parameters]
   
         !если на документ ссылаются так:  
             parser://method/param/to/that/method  
             то в качестве документа используется ^MAIN:method[/param/to/that/method]  
             [примечание: в параметр всегда приходит лидирующая /, даже, если параметров вообще не было]  
   
 !xnode  xnode
     DOM1 attributes:      DOM1 attributes:
     !$node.nodeName      $node.nodeName
     !$node.nodeValue      $node.nodeValue
         !read          read
         !write          write
     !$node.nodeType = int      $node.nodeType = int
       ELEMENT_NODE                   = 1           ELEMENT_NODE                   = 1
       ATTRIBUTE_NODE                 = 2           ATTRIBUTE_NODE                 = 2
       TEXT_NODE                      = 3           TEXT_NODE                      = 3
       CDATA_SECTION_NODE             = 4           CDATA_SECTION_NODE             = 4
       ENTITY_REFERENCE_NODE          = 5           ENTITY_REFERENCE_NODE          = 5
       ENTITY_NODE                    = 6           ENTITY_NODE                    = 6
       PROCESSING_INSTRUCTION_NODE    = 7           PROCESSING_INSTRUCTION_NODE    = 7
       COMMENT_NODE                   = 8           COMMENT_NODE                   = 8
       DOCUMENT_NODE                  = 9           DOCUMENT_NODE                  = 9
       DOCUMENT_TYPE_NODE             = 10           DOCUMENT_TYPE_NODE             = 10
       DOCUMENT_FRAGMENT_NODE         = 11           DOCUMENT_FRAGMENT_NODE         = 11
       NOTATION_NODE                  = 12           NOTATION_NODE                  = 12
             $vasyaNode.type==$xnode:ELEMENT_NODE              $vasyaNode.type==$xnode:ELEMENT_NODE
     !$node.parentNode      $node.parentNode
     !$node.childNodes = array of nodes      $node.childNodes = array of nodes
     !$node.firstChild      $node.firstChild
     !$node.lastChild      $node.lastChild
     !$node.previousSibling      $node.previousSibling
     !$node.nextSibling      $node.nextSibling
     !$node.ownerDocument = xdoc      $node.ownerDocument = xdoc
     !$node.prefix      $node.prefix
     !$node.namespaceURI      $node.namespaceURI
     !$element_node.attributes = hash of xnodes      $element_node.attributes = hash of xnodes
     !$element_node.tagName      $element_node.tagName
     !$attribute_node.specified = boolean      $attribute_node.specified = boolean
         true if the attribute received its value explicitly in the XML document,           true if the attribute received its value explicitly in the XML document,
         or if a value was assigned programatically with the setValue function.          or if a value was assigned programmatically with the setValue function.
         false if the attribute value came from the default value declared in the document's DTD.           false if the attribute value came from the default value declared in the document's DTD.
     !$attribute_node.name      $attribute_node.name
     !$attribute_node.value      $attribute_node.value
     $text_node/cdata_node/comment_node.substringData      $text_node/cdata_node/comment_node.substringData
     !$pi_node.target = target of this processing instruction      $pi_node.target = target of this processing instruction
         XML defines this as being the first token following the markup           XML defines this as the first token following the markup
         that begins the processing instruction.          that begins the processing instruction.
     !$pi_node.data = The content of this processing instruction      $pi_node.data = The content of this processing instruction
         This is from the first non white space character after the target           From the first non-whitespace character after the target
         to the character immediately preceding the ?>.           to the character immediately preceding the ?>.
     document_node.      document_node.
         readonly attribute DocumentType doctype          readonly attribute DocumentType doctype
         readonly attribute DOMImplementation implementation              readonly attribute DOMImplementation implementation
         readonly attribute Element documentElement          readonly attribute Element documentElement
     document_type_node.      document_type_node.
         !readonly attribute DOMString name          readonly attribute DOMString name
         readonly attribute NamedNodeMap entities          readonly attribute NamedNodeMap entities
         readonly attribute NamedNodeMap notations          readonly attribute NamedNodeMap notations
     !notation_node.      notation_node.
         !readonly attribute DOMString publicId          readonly attribute DOMString publicId
         !readonly attribute DOMString systemId          readonly attribute DOMString systemId
   
     !DOM1 node methods:      DOM1 node methods:
     !Node insertBefore(in Node newChild,in Node refChild)      Node insertBefore(in Node newChild,in Node refChild)
     !Node replaceChild(in Node newChild,in Node oldChild)      Node replaceChild(in Node newChild,in Node oldChild)
     !Node removeChild(in Node oldChild)      Node removeChild(in Node oldChild)
     !Node appendChild(in Node newChild)      Node appendChild(in Node newChild)
     !boolean hasChildNodes()      boolean hasChildNodes()
     !Node cloneNode(in boolean deep)      Node cloneNode(in boolean deep)
   
     !DOM1 element methods:      DOM1 element methods:
     !DOMString getAttribute(in DOMString name)      DOMString getAttribute(in DOMString name)
     !void setAttribute(in DOMString name, in DOMString value) raises(DOMException)      void setAttribute(in DOMString name, in DOMString value) raises(DOMException)
     !void removeAttribute(in DOMString name) raises(DOMException)      void removeAttribute(in DOMString name) raises(DOMException)
     !Attr getAttributeNode(in DOMString name)      Attr getAttributeNode(in DOMString name)
     !Attr setAttributeNode(in Attr newAttr) raises(DOMException)      Attr setAttributeNode(in Attr newAttr) raises(DOMException)
     !Attr removeAttributeNode(in Attr oldAttr) raises(DOMException)      Attr removeAttributeNode(in Attr oldAttr) raises(DOMException)
     !NodeList getElementsByTagName(in DOMString name)      NodeList getElementsByTagName(in DOMString name)
     !void normalize()      void normalize()
   
       Introduced in DOM Level 2:
     !Introduced in DOM Level 2:      Node importNode(in Node importedNode, in boolean deep) raises(DOMException)
     !Node importNode(in Node importedNode, in boolean deep) raises(DOMException)      NodeList getElementsByTagNameNS(in DOMString namespaceURI, in DOMString localName)
     !NodeList getElementsByTagNameNS(in DOMString namespaceURI, in DOMString localName)      boolean hasAttributes()
     !boolean hasAttributes()  
   
     !XPath:      XPath:
     !^node.select[xpath/query/expression] = array of nodes,       ^node.select[xpath/query/expression] = array of nodes,
         empty array if nothing found          empty array if nothing found
     !^node.selectSingle[xpath/query/expression] = first node if any      ^node.selectSingle[xpath/query/expression] = first node if any
     !^node.selectBool[xpath/query/expression] = bool if any or die      ^node.selectBool[xpath/query/expression] = bool if any or die
     !^node.selectNumber[xpath/query/expression] = double if any or die      ^node.selectNumber[xpath/query/expression] = double if any or die
     !^node.selectString[xpath/query/expression] = string if any or die      ^node.selectString[xpath/query/expression] = string if any or die
   
     !error codes(пока придут как текст в случае соответствующих ошибок):  
         INDEX_SIZE_ERR  
         If index or size is negative, or greater  
         than the allowed value  
         DOMSTRING_SIZE_ERR  
         If the specified range of text does not  
         fit into a DOMString  
         HIERARCHY_REQUEST_ERR  
         If any node is inserted somewhere it  
         doesn't belong  
         WRONG_DOCUMENT_ERR  
         If a node is used in a different  
         document than the one that created it  
         (that doesn't support it)  
         INVALID_CHARACTER_ERR  
         If an invalid character is specified,  
         such as in a name.  
         NO_DATA_ALLOWED_ERR  
         If data is specified for a node which  
         does not support data  
         NO_MODIFICATION_ALLOWED_ERR  
         If an attempt is made to modify an  
             object where modifications are not  
         allowed  
         NOT_FOUND_ERR  
         If an attempt was made to reference a  
         node in a context where it does not  
         exist  
         NOT_SUPPORTED_ERR  
         If the implementation does not support  
         the type of object requested  
         INUSE_ATTRIBUTE_ERR  
         If an attempt is made to add an  
         attribute that is already inuse  
         elsewhere  
   
 !memory  
     !^memory:compact[] собрать мусор, освободив место под новые данные  
     (предупреждение: память процесса никогда не освобождается)  
     полезно делать перед XSL transform.  
   
 !status  
     !чтобы класс был доступен, в apache нужно сказать   
     <Location /parser-status.html>  
     ParserStatusAllowed  
     </Location>  
     !в cgi доступен везде  
     !в isapi не доступен нигде  
   
     !$status:sql hash  
         !cache table  
             url    time      
             url    time      
             url    time      
     !$status:stylesheet  
         !cache table  
             file    time  
             file    time  
             file    time  
   
     !$status:rusage hash  
         !utime user time used  
         !stime system time used  
         !maxrss max resident set size  
         !ixrss integral shared text memory size  
         !idrss integral unshared data size  
         !isrss integral unshared stack size  
         !tv_sec  
         !tv_usec  
            $s[$status:rusage]  
            ^s.tv_sec.format[%.0f].^s.tv_usec.format[%06.0f]  
   
     !$status:memory hash  
         !used  
             Includes some pages that were allocated but never written.            
   
         !free  
   
         !ever_allocated_since_compact  
             Return the number of bytes allocated since the last collection.       
   
         !ever_allocated_since_start  
             Return the total number of bytes [EVER(c)PAF] allocated in this process.              
             Never decreases.                                                      
   
     !$status:pid process id  
     !$status:tid thread id  
   
 console  
     $console:timeout  
     !$console:line  
         read/write строку  
   
 DATA::=string | file | hash  DATA::=string | file | hash
       hash of the form
       [
           $.file[filename on disk]
           $.name[filename for user]
           $.mdate[date]
       ]
   
 !hash вида  MAIN
 [      this is the class automatically loaded from the configuration auto.p, a bunch of auto.p and the requested document:
         $.file[имя файла на диске]          configuration auto.p
         $.name[имя файла для пользователя]              cgi:
         $.mdate[date]                  1. either full path from environment variable CGI_PARSER_SITE_CONFIG or next to parser binary
 ]  
   
 !MAIN  
     это класс, загружаемый на автомате из конфигурационного auto.p,   
     кучи auto.p и запрашиваемого документа:  
         !конфигурационный auto.p   
             cgi:   
                 1. или полный путь из переменной окружения CGI_PARSER_SITE_CONFIG  
                    или рядом с бинарником parser'а   
             isapi: windows directory              isapi: windows directory
             apache module:               apache module:
                 1) ParserConfig [can be in .htaccess]                  1) ParserConfig [can be in .htaccess]
         !auto.p вниз от DOCUMENT_ROOT/ по дереву до каталога с обрабатываемым файлом включительно          auto.p goes down from DOCUMENT_ROOT/ through the directory tree to the directory of the processed file, inclusive
     класс собирается из всех этих файлов, последующие становятся родителями предыдущих      the class is assembled from all these files, subsequent ones become parents of the previous ones
     имя последнего загруженного MAIN, имён у предыдущих нет      the name of the last loaded is MAIN, previous ones have no names
       
     !после загрузки MAIN класса вызывается его @main[]      after loading MAIN class, its @main[] is called
     !результат которого передаётся в его @postprocess[data] if($data is string) ...      the result is passed to its @postprocess[data] if($data is string) ...
     !результат которого отдаётся пользователю      the result is then returned to the user
   
 !если встречается ошибка и try не задан, её можно красиво сообщить пользователю,   if an error occurs and try is not specified, it can be nicely reported to the user by defining
     !определив      @unhandled_exception[exception;stack]
     !@unhandled_exception[exception;stack]          $exception.type  string "type of problem"
     !$exception.type  строка "тип проблемы"          $exception.file $exception.lineno $exception.colno file, line and position where the problem occurred [if not disabled at compile time]
     !$exception.file $exception.lineno файл и строка где случилась проблема [если не запрещены при компиляции]          $exception.source line that caused the problem
     !$exception.source строка, из-за которой случилась проблема          $exception.comment English comment
     !$exception.comment комментарий english          stack table with columns file line name,
     !stack табличка из колонок file line name,              in reverse order the names[name] and places[file line] of the operators/methods that caused the error.
         там лежат в обратном порядке имена[name] и места вызовов[file line]   
         операторов/методов, приведших к ошибке.  when loading a file (file::load, table::load, xdoc::load) you can specify such a filename:
       http://domain/document[?params<<deprecated, use $.form[...]]
 !при загрузке файла (file::load, table::load, xdoc::load) можно указать такое имя файла:      and possibly specify options:
     !http://domain/document[?params<<deprecated, use $.form[...]]          $.method[GET|POST|HEAD]
     !а также, возможно, указать опции:          $.timeout(3)  << in seconds, default=2
         !$.method[GET|POST|HEAD]          $.cookies[
         !$.timeout(3)  << в секундах, по-умолчанию =2              $.name[value]
         !$.cookies[          ]
                 $.имя[значение]          $.headers[
               $.field[value] << value format like $response:HEADER
         ]          ]
         !$.headers[  
         !    $.поле[значение] << значение имеет формат, как $response:ЗАГОЛОВОК  
         !]  
         $.enctype[multipart/form-data]          $.enctype[multipart/form-data]
         $.form[          $.form[
             !$.field1[string]              $.field1[string]
             !$.field2[^table::create{one_column_only^#0Avalue1^#0Avalue2}]              $.field2[^table::create{one_column_only^#0Avalue1^#0Avalue2}]
             $.field3[file]              $.field3[file]
         ]          ]
         !$.body[string]          $.body[string|file]
                 |file          default user-agent=parser3
         !по-умолчанию, user-agent=parser3          by default, getting http status != 200 >> creates http.status error, can be disabled by $.any-status(1)
         !по-умолчанию, получение http status != 200 >> создает http.status ошибку,          $.charset[default encoding of remote documents], if server returns content-type:charset - IT OVERRIDES
         !это можно отключить, передав          $.response-charset[encoding of remote documents], not overridden by content-type:charset
         !$.any-status(1)          $.user[user]
         !$.charset[кодировка удалённых докуметов по-умолчанию] << если сервер вернёт content-type:charset=ОНА_ПЕРЕБИВАЕТ          $.password[password]
         !$.user[пользователь]      file::load writes additional fields
         !$.password[пароль]          FIELD:value (response field names in uppercase)
     !file::load в дополнительные поля записывает          tables << a hash of FIELD->table with a single column "value"
         !ПОЛЕ:значение (имена полей ответа заглавными буквами)              in such tables you can get repeating headers, e.g. multiple set-cookies
         !tables << хеш их ПОЛЕ->table с единственным столбцом "value".               todo: make separate cookies
             в таких таблицах можно брать повторяющиеся заголовки. например, несколько set-cookies  
             todo:сделать отдельный cookies  system error types:
       parser.compile       ^test[}                compilation (unmatched bracket, ...)
 !системные типы ошибок:      parser.runtime       ^if(0).                parameters (more/less than needed, wrong types, ...)
     !parser.compile       ^test[}                компиляция (непарная скобка, ...)      number.zerodivision  ^eval(1/0) ^eval(1%0)
     !parser.runtime       ^if(0).                параметры (больше/меньше, чем нужно, не тех типов, ...)      number.format        ^eval(abc*5)
     !number.zerodivision  ^eval(1/0) ^eval(1%0)      file.lock                                                        shared/exclusive lock error
     !number.format        ^eval(abc*5)      file.missing         ^file:delete[delme]                         not found
     !file.lock                                                        shared/exclusive lock error      file.access          ^table::load[.]                             no rights
     !file.missing         ^file:delete[delme]                         not found      file.read            ^file::load[...]                            error while reading file
     !file.access          ^table::load[.]                             no rights      file.seek                                                        seek failed
     !file.seek                                                        seek failed      file.execute         ^file::cgi[...]                             incorrect cgi header/can't execute
     !image.format         ^image::measure[index.html]                 not gif/jpg      image.format         ^image::measure[index.html]                 not gif/jpg
     !sql.connect          ^connect[mysql://baduser:pass@host/db]{}    not found/timeout      sql.connect          ^connect[mysql://baduser:pass@host/db]{}    not found/timeout
     !sql.execute          ^void:sql{select bad}                       syntax error      sql.execute          ^void:sql{select bad}                       syntax error
     sql.duplicate      sql.duplicate
     sql.access      sql.access
     sql.missing      sql.missing
     sql.xxx [serge asked]      xml                  ^xdoc::create{<forgot?>}                    any error in xml/xslt libs
     !xml                  ^xdoc::create{<forgot?>}                    any error in xml/xslt libs      smtp.connect                                                     not found/timeout
     !smtp.connect                                                     not found/timeout      smtp.execute                                                     communication error
     !smtp.execute                                                     communication error      email.format         hren tam@null.ru                            wrong email format (bad chars/empty)
     !email.format         hren tam@null.ru                            wrong email format(bad chars/empty)      email.send           $MAIL.sendmail[/shit]                       sendmail not executable
     !email.send           $MAIL.sendmail[/shit]                       sendmail not executable      http.host            ^file::load[http://notfound/there]          host not found
     !http.host            ^file::load[http://notfound/there]          host not found      http.connect         ^file::load[http://not_accepting/there]     host found, but does not accept connections
     !http.connect         ^file::load[http://not_accepting/there]     host found, but do not accept connections      http.timeout         ^file::load[http://host/doc]                load operation failed to complete in # seconds
     !http.timeout         ^file::load[http://host/doc]                whole load operation failed to complete in # seconds      http.response        ^file::load[http://ok/there]                host found, connection accepted, bad answer
     !http.response        ^file::load[http://ok/there]                host found, connection accepted, bad answer      http.status          ^file::load[http://ok/there]                host found, connection accepted, status!=200
     !http.status          ^file::load[http://ok/there]                host found, connection accepted, status!=200      date.range           ^date::create(10000;1;1)                    date out of valid range
       
 !нужно выключить русский apache: CharsetDisable on  if $SIGPIPE(1) is defined in MAIN, then if processing was interrupted by the user, a message
       about this is written to parser3.log
 Xесли в MAIN будет определён флаг $ORIGINS(1) то вместо обычного вывода страницы будет  
     выдан список фрагментов результата с указанием их происхождения  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
 !если в MAIN определён $SIGPIPE(1) то в случае, если обработка была прервана пользователем, сообщение  
         об этом будет записано в parser3.log (раньше оно всегда писалось)  
   
 !если описание метода содержит локальную переменную result в явном виде  
     (есть и неявная переменная)  
     то код вывода строковых литералов не попадает в конечный байт-код,  
     а непробельные символы считаются синтаксической ошибкой  
     для вывода чего бы то ни было надо пользоваться этой переменной  
   
   $Id$

Removed from v.1.209  
changed lines
  Added in v.1.271


E-mail: