parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

что у parser внутри

Александр Петросян (PAF) 21.11.2005 13:20

кое-что отлаживал в байт-код машине, кусочек журнала:

было:
@conf[]
$charsetsdir[c:/drives/Y\parser3project\parser3\etc\parser3.charsets]
$sqldriversdir[c:/drives/Y\parser3project\sql]
$CHARSETS[
    $.koi8-r[$charsetsdir/koi8-r.cfg]
    $.windows-1251[$charsetsdir/windows-1251.cfg]
]

#change your client libraries paths to those on your system
$SQL[
	$.drivers[^table::create{protocol	driver	client
mysql	$sqldriversdir/mysql/Debug/parser3mysql.dll	Y:\parser3project\win32\sql\mysql\lib\opt\libmySQL.dll
odbc	$sqldriversdir/odbc/Debug/parser3odbc.dll
pgsql	$sqldriversdir/pgsql/debug/parser3pgsql.dll	$sqldriversdir/pgsql/debug/libpq.dll 
#oracle	$sqldriversdir/oracle/debug/parser3oracle.dll	C:\oracle\ora90\bin\oci.dll?PATH+=^;C:\oracle\ora90\bin
oracle	$sqldriversdir/oracle/debug/parser3oracle.dll	C:\oracle\ora90AS\bin\oci.dll?PATH+=^;C:\oracle\ora90AS\bin

}]                                                                     
]
стало:
source----------------------------|
WITH_ROOT
VALUE "charsetsdir" string
VALUE "c:/drives/Y\parser3project\parser3\etc\parser3.charsets" string
CONSTRUCT_VALUE
STRING__WRITE "|" string
WITH_ROOT
VALUE "sqldriversdir" string
VALUE "c:/drives/Y\parser3project\sql" string
CONSTRUCT_VALUE
STRING__WRITE "|" string
WITH_ROOT
VALUE "CHARSETS" string
OBJECT_POOL
    STRING__WRITE "|    " string
    WITH_WRITE
    VALUE "koi8-r" string
    OBJECT_POOL
        WITH_READ
        VALUE "charsetsdir" string
        GET_ELEMENT__WRITE
        STRING__WRITE "/koi8-r.cfg" string
    CONSTRUCT_VALUE
    STRING__WRITE "|    " string
    WITH_WRITE
    VALUE "windows-1251" string
    OBJECT_POOL
        WITH_READ
        VALUE "charsetsdir" string
        GET_ELEMENT__WRITE
        STRING__WRITE "/windows-1251.cfg" string
    CONSTRUCT_VALUE
    STRING__WRITE "|" string
CONSTRUCT_VALUE
STRING__WRITE "||" string
WITH_ROOT
VALUE "SQL" string
OBJECT_POOL
    STRING__WRITE "|	" string
    WITH_WRITE
    VALUE "drivers" string
    OBJECT_POOL
        VALUE "table" string
        GET_CLASS
        PREPARE_TO_CONSTRUCT_OBJECT
        VALUE "create" string
        GET_ELEMENT
        CALL__WRITE
            CURLY_CODE__STORE_PARAM
                STRING__WRITE "protocol	driver	client|mysql	" string
                WITH_READ
                VALUE "sqldriversdir" string
                GET_ELEMENT__WRITE
                STRING__WRITE "/mysql/Debug/parser3mysql.dll	Y:\parser3project\win32\sql\mysql\lib\opt\libmySQL.dll|odbc	" string
                WITH_READ
                VALUE "sqldriversdir" string
                GET_ELEMENT__WRITE
                STRING__WRITE "/odbc/Debug/parser3odbc.dll|pgsql	" string
                WITH_READ
                VALUE "sqldriversdir" string
                GET_ELEMENT__WRITE
                STRING__WRITE "/pgsql/debug/parser3pgsql.dll	" string
                WITH_READ
                VALUE "sqldriversdir" string
                GET_ELEMENT__WRITE
                STRING__WRITE "/pgsql/debug/libpq.dll |oracle	" string
                WITH_READ
                VALUE "sqldriversdir" string
                GET_ELEMENT__WRITE
                STRING__WRITE "/oracle/debug/parser3oracle.dll	C:\oracle\ora90AS\bin\oci.dll?PATH+=;C:\oracle\ora90AS\bin||" string
    CONSTRUCT_VALUE
    STRING__WRITE "                                                                     |" string
CONSTRUCT_VALUE
STRING__WRITE "||" string
WITH_ROOT
VALUE "MIME-TYPES" string
OBJECT_POOL
    VALUE "table" string
    GET_CLASS
    PREPARE_TO_CONSTRUCT_OBJECT
    VALUE "create" string
    GET_ELEMENT
    CALL__WRITE
        CURLY_CODE__STORE_PARAM
            STRING__WRITE "ext	mime-type|zip	application/zip|doc	application/msword|xls	application/vnd.ms-excel|pdf	application/pdf|ppt	application/powerpoint|rtf	application/rtf|gif	image/gif|jpg	image/jpeg|jpeg	image/jpeg|png	image/png|tif	image/tiff|html	text/html|htm	text/html|txt	text/plain|mts	application/metastream|mid	audio/midi|midi	audio/midi|mp3	audio/mpeg|ram	audio/x-pn-realaudio|rpm	audio/x-pn-realaudio-plugin|ra	audio/x-realaudio|wav	audio/x-wav|au	audio/basic|mpg	video/mpeg|avi	video/x-msvideo|mov	video/quicktime|swf	application/x-shockwave-flash|" string
CONSTRUCT_VALUE
STRING__WRITE "||" string
WITH_ROOT
VALUE "LIMITS" string
OBJECT_POOL
    STRING__WRITE "|	" string
    WITH_WRITE
    VALUE "post_max_size" string
    PREPARE_TO_EXPRESSION
    VALUE "10" double
    VALUE "1024" double
    MUL
    VALUE "1024" double
    MUL
    CONSTRUCT_EXPR
    STRING__WRITE "|" string
CONSTRUCT_VALUE
STRING__WRITE "	||" string
WITH_ROOT
VALUE "MAIL" string
OBJECT_POOL
    STRING__WRITE "|	" string
    WITH_WRITE
    VALUE "SMTP" string
    VALUE "mail.srv.design.ru" string
    CONSTRUCT_VALUE
    STRING__WRITE "|" string
CONSTRUCT_VALUE
STRING__WRITE "||" string
execution-------------------------|
1:WITH_ROOT
2:VALUE
 "charsetsdir" string
3:VALUE
 "c:/drives/Y\parser3project\parser3\etc\parser3.charsets" string
4:CONSTRUCT_VALUE
1:STRING__WRITE
 "|"
...