Dear,A new version of kixstrip.exe 2.01 has been created.
Some minor problems has been fixed:
- a very occasional problem which range checking has been fixed.
User gets in earlier versions "runtime error 201".
- /tab doesn't work clearly with /debug option. fixed.
- version information added to summary of structure.
- examples added to help information. help information retrieve with
kixstrip ?
Output of command help ?:
code:
Kixstrip 3.63 (vs 2.01e) (c) MCA - scripting@wanadoo.nl - 2000, 2001
------------------------------------------------------------------------------
kixstrip [input] [output]
/Block_Check or /BC /Combine /Debug
/Headers /License /License=[var]
/Performance /Print /Progress
/Show_Errors or /SE /Translate /TAB=[num] (def: 6) default: /Combine /Headers /License (other options are negative)
other: - options with prefix "/No" will be ignored. f.e. /NoDebug /NoTab
- /Block_Check /Tab=2 (auto set: /NoCombine /NoLicense /Print )
/Debug (auto set: /NoLicense /Print /Show_Errors )
- /Block_Check (reformat kixtart code inc. block structure )
/Combine (combine lines to one line )
/Headers (insert summary report as footer )
/Debug (insert "line numbers" for each printed line )
/Performance (insert "indicator" for each executed line)
/Print (do not remove print statements )
/Progress (insert "indicator" for each printed line )
/Show_Errors (insert error messages in output file )
/Translate (convert keywords to upper/lower-case )
examples - kixstrip test.kix test.out /Print
- kixstrip test.kix test.out /Block_Check /Debug /Show_Errors
- kixstrip test.kix test.out /Performance
An example of kixstrip test.kix test.out /block_check /debug /show_errors.
Result of test.out:
code:
?"- 1-" IF ingroup("\\CS08\LOGONUSER") = 1
?"- 2-" USE T: "\\cs08\template"
?"- 3-" USE g: "\\cs08\%username%"
?"- 4-" end
IF
?"- 5-" IF ingroup("MSFIN") = 1
?"- 6-" USE V: "\\cs09\finance"
?"- 7-" USE s: "\\cs02\t_bms\res4w"
?"- 8-" USE i: "\\cs08\MGT_FIN"
?"- 9-" ENDIF
?"- 10-" IF ingroup("TOCBID") = 1
?"- 11-" USE T: "\\cs08\template"
?"- 12-" USE g: "\\cs08\%USERNAME%"
?"- 13-" USE h: "\\cs08\toc_bid"
?"- 14-" USE J: "\\cs08\tpe_bid_pub"
?"- 15-" ENDIF
?"- 16-" ? @user
; -------> Warning KIXSTRIP: 16 line contains unknown function.
?"- 17-" IF ($os = "w95"
; -------> Warning KIXSTRIP: 17 line incomplete "left parenthesis".
; -------> Warning KIXSTRIP: 17 line incompleted.
?"- 18-" ? $os
?"- 19-" ENDIF
?"- 20-" EXIT
?"- 21-" ;($begin)
;
; sun 25-mar-2001 20:54:58 (3.63 vs 2.01e)
;
;Warning KIXSTRIP: 2 blocks are incompleted.
; missing "do/until", "if/else/endif", "while/loop"
; "select/case/endselect" statement.
; - do/until [0:0]
; - if/else/endif [5:0:3]
; - select/case/endselect [0:0:0]
; - while/loop [0:0]
;Warning KIXSTRIP: 1 line is incompleted.
;Warning KIXSTRIP: some lines contains errors or possible errors.
; 1 line incomplete "left parenthesis".
; 1 line incompleted.
; 1 line contains unknown function.
;Informative KIXSTRIP: 5 block_structures found.
;Informative KIXSTRIP: no labels found.
;Summary KIXSTRIP: CALL EXIT GOSUB GOTO QUIT RETURN RUN SHELL USE
;Informative KIXSTRIP: 1 EXIT
;Informative KIXSTRIP: 9 USE
;
;($end)
;($begin)
;
;Warning KIXSTRIP: 17 line incomplete "left parenthesis".
;Warning KIXSTRIP: 17 line incompleted.
;Warning KIXSTRIP: 16 "@user" line contains unknown function.
;
;($end)
The screen output of above example:
code:
Kixstrip 3.63 (vs 2.01e) (c) MCA - scripting@wanadoo.nl - 2000, 2001
.
Warning KIXSTRIP: 17 line incomplete "left parenthesis".
Warning KIXSTRIP: 17 line incompleted.
Warning KIXSTRIP: 16 "@user" line contains unknown function.
.
Kixstrip 3.63 (vs 2.01e) 0.06 (sec)
.
input 21 test.kix
output 21 test.out
block_check -ERROR- block_errors_count=2 block_structures=5 labels=0
tab=6 (default)
.
Warning KIXSTRIP: 2 blocks are incompleted.
missing "do/until", "if/else/endif", "while/loop"
"select/case/endselect" statement.
- do/until [0:0]
- if/else/endif [5:0:3]
- select/case/endselect [0:0:0]
- while/loop [0:0]
5 block_structures found.
Warning KIXSTRIP: 1 line is incompleted.
Warning KIXSTRIP: 1 line contains unknown function.
.
active options:
/Block_Check /Debug /Headers /Print /Show_Errors /TAB=6 /Translate
inactive options:
/NoCombine /NoPerformance /NoProgress
/NoLicense: (not.specified)
Greetings.
BTW:
related kixtart topic: