File: badtrees.tcl

package info (click to toggle)
tcllib 1.20%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 68,064 kB
  • sloc: tcl: 216,842; ansic: 14,250; sh: 2,846; xml: 1,766; yacc: 1,145; pascal: 881; makefile: 107; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (23 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package require struct::tree
package require fileutil

struct::tree T
fileutil::writeFile in-vt/0_root_label [T serialize]
T set root label L
fileutil::writeFile in-vt/1_root_title [T serialize]
T set root title T
T insert root end K
fileutil::writeFile in-vt/2_keyword_label [T serialize]
T set K label L
T insert K end R
fileutil::writeFile in-vt/3_ref_type [T serialize]
T set R type foo
fileutil::writeFile in-vt/4_ref_label [T serialize]
T set R label L
fileutil::writeFile in-vt/5_ref_ref [T serialize]
T set R ref X
fileutil::writeFile in-vt/6_ref_tag [T serialize]
T set R type url
T insert R end OVER
fileutil::writeFile in-vt/7_depth [T serialize]
exit