home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 April A
/
Pcwk4a98.iso
/
Wtestowe
/
OnNet16
/
SCRIPT.STP
< prev
next >
Wrap
Text File
|
1997-02-13
|
8KB
|
251 lines
:(mm,#!,(:(o,(
TRAC Error: <1><2><3>))))
:(mm,##,(
:(o,(Dialer Script Interpreter v):(r,S.Version)( -- Started ):(xcf)(
)):(ri,S.dispatch,<1>)
:(o,(
End Dialer Script Interpreter v):(r,S.Version)( -- Finished ):(xcf)(
))
))
:(s,S.)
:(s,S.Version,3.0)
:(mm,S.get_langs,( <* run this once, then delete it *>
:(d,S.available_langs) <* not needed after call *>
:(s,S.langs.trac.yes) <* always true *>
:(ri,S.exclude_languages:(mli,(,),S.langs.))
:(d,S.get_langs) <* no longer needed *>
))
:(mm,S.exclude_languages,( <* 16 LANGUAGES MAX (upgrade below) *>
<* run this once, then delete it *>
:(ei,,<1>, <* end recursion by deletion*>
(:(d,S.exclude_languages)), <* don't need this any more *>
(
:(ri,S.exclude_languages2,<1>,:(wdial_getlangi))
:(ri,S.exclude_languages,
<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>,<13>,<14>,<15>,<16>)
)
)
:(d,S.exclude_languages2) <* we will not need this again *>
))
:(mm,S.exclude_languages2,( <* 16 LANGUAGES MAX (upgrade below) *>
:(ei,,<2>,, <* end of recursion at end of list *>
( <* otherwise... *>
:(s,S.tmp,<2>) <* put it in a text form *>
:(ttci,S.tmp,<1>, <* does it contain lang? *>
<* yes: copy, don't recurse *>
(:(s,S.langs.<1>yes,<2>)),
<* no: recurse *>
(:(ri,S.exclude_languages2,<1>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>,<13>,<14>,<15>,<16>))
)
)
)
))
:(mm,S.dispatch,(
:(mlf) <* turn off symbols in :(ml) *>
:(pc,(
:(s,S.infile) <* start from a clean slate *>
:(ri,S.get_langs) <* Get available languages *>
<* Read in the script *>
:(fo,<1>,(:(ri,S.error,<1>,,cant_open_script_file):(px)))
:(pc,(:(s,S.infile,:(r,S.infile):(fr,,10000,(:(px))))),-1)
:(fc)
:(ei,0,:(tl,S.infile),(:(ri,S.error,<1>,,empty_file):(px)))
<* Analyze the script and *>
:(ri,S.which)
<* Decide which to use *>
:(mhi,DEBUG,(:(xto)))
:(ei,,:(r,S.language),
(:(ri,S.error,<1>,,cant_decide):(px))
)
:(tti,S.language,(,),
(:(ri,S.error,<1>,,cant_decide):(px))
)
:(mhi,S.langs.:(r,S.language).,
(:(mhi,S.langs.:(r,S.language).yes,
(:(ri,S.langs.:(r,S.language).start,S.infile)),
(:(ri,S.error,<1>,:(r,S.language),cant_find_language))
)),
(:(ri,S.error,<1>,:(r,S.language),bad_langauge))
)
),1)
:(mhi,DEBUG,(:(o,:(r,S.language)( for <1>: )):(ri,check)))
))
:(s,S.langs.)
:(s,S.langs.trac.)
:(s,S.langs.slang.)
:(s,S.langs.comscrpt.)
:(o,,(
:(s,S.langs.nd.)
:(s,S.langs.uucp.)
))
:(s,S.langs.slang.inuse,0)
:(s,S.langs.slang.clues,({,},receive,replace,has,include,output,debug(,)on))
:(s,S.langs.slang.weights,(
(:(ri,S.pri,1)),
(:(ri,S.pri,1)),
(:(ri,S.pri,1)),
(:(ri,S.pri,1)),
(:(ri,S.pri,1)),
(:(ri,S.pri,5)),
(:(ri,S.pri,2)),
(:(s,S.langs.slang.DEBUG))
))
:(mm,S.langs.slang.start,(
:(mhi,slang.,,(:(mf,,:(r,S.langs.slang.yes))))
:(s,S.langs.slang.inuse,:(aa,:(r,S.langs.slang.inuse),1))
:(ri,slang.i.interp,<1>)
:(s,S.langs.slang.inuse,:(as,:(r,S.langs.slang.inuse),1))
:(ei,:(r,S.langs.slang.inuse),0,(:(d,slang.))) <* not in use, delete *>
))
:(s,S.langs.comscrpt.inuse,0)
:(s,S.langs.comscrpt.clues,(;,signal,\r,\n,\t,msec,pause))
:(s,S.langs.comscrpt.weights,(
(:(ri,S.pri,1)),
(:(ri,S.pri,8)),
(:(ri,S.pri,2)),
(:(ri,S.pri,2)),
(:(ri,S.pri,2)),
(:(ri,S.pri,3)),
(:(ri,S.pri,1))
))
:(mm,S.langs.comscrpt.start,(
:(mhi,comscrpt.,,(:(mf,,:(r,S.langs.comscrpt.yes))))
:(s,S.langs.comscrpt.inuse,:(aa,:(r,S.langs.comscrpt.inuse),1))
:(ri,comscrpt.i.interp,<1>)
:(s,S.langs.comscrpt.inuse,:(as,:(r,S.langs.comscrpt.inuse),1))
:(ei,:(r,S.langs.comscrpt.inuse),0,(:(d,comscrpt.))) <* not in use, delete *>
))
:(s,S.langs.trac.clues,(::(bxo,28),(mm,),(s,),(r,),(ri,)))
:(s,S.langs.trac.weights,(
(:(ri,S.pri,1)),
(:(ri,S.pri,1)),
(:(ri,S.pri,1)),
(:(ri,S.pri,1)),
(:(ri,S.pri,1))
))
:(mm,S.langs.trac.start,(
:(ri,<1>)
))
:(mm,S.weigh,(
:(s,S.heaviest.)
:(s,S.heaviest.weight,(-1))
:(s,S.dirlist,:(ml,(,),<1>)(,))
:(trf,S.dirlist,(,))
:(pc,(
:(s,S.curlang,:(ts,S.dirlist,,(,),(:(px))))
:(agi,:(r,<1>:(r,S.curlang)weight),:(r,S.heaviest.weight),
(:(s,S.heaviest.lang,:(r,S.curlang))
:(s,S.heaviest.weight,:(r,<1>:(r,S.curlang)weight))),
(:(s,S.heaviest.lang,
:(r,S.heaviest.lang)(,):(r,S.curlang))),)
),(-1),)
:(tra,S.heaviest.lang,(.))
:(r,S.heaviest.lang)
:(d,S.dirlist,S.curlang) <* clean up *>
))
:(mm,S.which,(
:(tps,S.infile,0) <* go to start *>
:(s,S.tmp,:(ts,S.infile,,(
)))
:(tps,S.infile,0) <* go to start *>
:(tra,S.tmp,( ),( )) <* tab to space *>
:(tra,S.tmp,*,( )) <* star to space*>
:(tra,S.tmp,langauge,language)
:(s,S.tmp,:(tsi,S.tmp,language=,( )))
:(agi,:(tl,S.tmp),0,
(:(s,S.language,:(r,S.tmp))), <* user spec. *>
(:(s,S.consider,:(ml,;,S.langs.)) <* get list *>
:(trf,S.consider,;)
:(pc,(
:(ri,S.which1,:(ts,S.consider,,;,(:(px))))
),-1)
:(d,S.consider) <* clean up *>
:(s,S.language,:(ri,S.weigh,S.langs.)) <* decide *>
)
)
))
:(mm,S.which1,(
:(s,S.langs.<1>weight,0) <* initialize probability weight *>
:(s,S.priority,0) <* initialize sum variable to zero*>
:(pc,(
:(s,S.test,:(tn,S.infile,512,(:(px))))
:(ms,S.test,
:(ri,S.langs.<1>clues)) <* ... use clues provided *>
:(tra,S.test,:,&) <* make text neutral *>
:(tra,S.test,:(bxo,28),&) <* make text neutral *>
:(tra,S.test,:(bxo,29),&) <* make text neutral *>
:(mw,S.test)
:(od,,:(ri,S.test,:(ri,S.langs.<1>weights)))
),-1)
:(s,S.langs.<1>weight,:(r,S.priority))
:(d,S.priority,S.test); <* clean up *>
:(tps,S.infile,0) <* reset to beginning *>
))
:(mm,S.pri,(:(s,S.priority,:(aa,:(r,S.priority),<1>))))
:(mm,S.error,(
:(o,(
***** Error Executing Script File `<1>' *****
)):(ri,S.<3>,<1>,<2>):(o,(
**********************************************************************
))))
:(mm,S.langlist,(
:(s,S.tmp,:(ml,(, ),S.langs.)) <* make a language list *>
:(tra,S.tmp,(, ),(", ")) <* wrap with quotes *>
:(tps,S.tmp,3) <* point over leading seperator *>
:(tpe,S.tmp) <* read to end of form *>
:(d,S.tmp) <* delete form *>
))
:(mm,S.empty_file,(
:(o,(The script file `<1>' is empty, or cannot be read.
Aborting the script in `<1>'.))
))
:(mm,S.cant_decide,(
:(o,(Dialer can not identify which language the script in `<1>'
is written in, and therefore can't execute it.
Including the line: `language=<name>' where name is one of:
):(ri,S.langlist)("
as the first line in the script file `<1>' (as part of a comment)
will solve this problem.))
))
:(mm,S.cant_open_script_file,(
:(o,(Dialer cannot open the script file `<1>'. Please ensure
`<1>' exists in the directory path specified, and has the
file attributes `read-write'.))
))
:(mm,S.cant_find_language,(
:(o,(Dialer did not find `<2>.lng', and therefore can't execute `<1>'.
Please ensure `<2>.lng' is in the same directory as `wdial.exe'.))
))
:(mm,S.bad_langauge,(
:(o,(Dialer does not support `<2>' and therefore can't execute `<1>'.
The `language=<2>' statement in the first line of `<1>' is
incorrect. Instead of `<2>' please use one of these supported
languages: ):(ri,S.langlist)("))
))