File: csv.pcx

package info (click to toggle)
tcllib 1.12-dfsg-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 25,336 kB
  • ctags: 7,235
  • sloc: tcl: 126,727; ansic: 10,090; sh: 9,855; xml: 1,766; yacc: 753; makefile: 127; perl: 84; f90: 84; pascal: 74; python: 33; ruby: 13; php: 11
file content (122 lines) | stat: -rw-r--r-- 2,531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# -*- tcl -*- csv.pcx
# Syntax of the commands provided by package csv.

# For use by TclDevKit's static syntax checker.
# See http://www.activestate.com/solutions/tcl/
# See http://aspn.activestate.com/ASPN/docs/Tcl_Dev_Kit/4.0/Checker.html#pcx_api
# for the documentation describing the format of the code contained in this file
#

package require pcx
pcx::register csv
pcx::tcldep   0.7 needs tcl 8.3

namespace eval ::csv {}

#pcx::message FOO {... text ...} type
#pcx::scan <VERSION> <NAME> <RULE>

pcx::check 0.7 std ::csv::iscomplete \
    {checkSimpleArgs 1 1 {
	checkWord
    }}
pcx::check 0.7 std ::csv::join \
    {checkSimpleArgs 1 3 {
	checkList
	checkWord
	checkWord
    }}
pcx::check 0.7 std ::csv::joinlist \
    {checkSimpleArgs 1 3 {
	checkList
	checkWord
	checkWord
    }}
pcx::check 0.7 std ::csv::joinmatrix \
    {checkSimpleArgs 1 3 {
	checkWord
	checkWord
	checkWord
    }}
pcx::check 0.7 std ::csv::read2matrix \
    {checkSimpleArgs 2 -1 {
	{checkSwitches 1 {
	    -alternate
	} {checkSimpleArgs 1 4 {
	    checkChannelID
	    checkWord
	    checkWord
	    {checkKeyword 1 {none empty auto}}
	}}}
    }}
pcx::check 0.7 std ::csv::read2queue \
    {checkSimpleArgs 2 -1 {
	{checkSwitches 1 {
	    -alternate
	} {checkSimpleArgs 2 3 {
	    checkChannelID
	    checkWord
	    checkWord
	}}}
    }}
pcx::check 0.7 std ::csv::report \
    {checkSimpleArgs 2 3 {
	{checkOption {
	    {printmatrix         {checkSimpleArgs 1 1 {
		checkWord
	    }}}
	    {printmatrix2channel {checkSimpleArgs 2 2 {
		checkWord
		checkChannelID
	    }}}
	} {}}
    }}
pcx::check 0.7 std ::csv::split \
    {checkSimpleArgs 1 -1 {
	{checkSwitches 1 {
	    -alternate
	} {checkSimpleArgs 1 3 {
	    checkWord
	    checkWord
	    checkWord
	}}}
    }}
pcx::check 0.7 std ::csv::split2matrix \
    {checkSimpleArgs 2 -1 {
	{checkSwitches 1 {
	    -alternate
	} {checkSimpleArgs 1 4 {
	    checkChannelID
	    checkWord
	    checkWord
	    {checkKeyword 1 {none empty auto}}
	}}}
    }}
pcx::check 0.7 std ::csv::split2queue \
    {checkSimpleArgs 2 -1 {
	{checkSwitches 1 {
	    -alternate
	} {checkSimpleArgs 2 3 {
	    checkChannelID
	    checkWord
	    checkWord
	}}}
    }}
pcx::check 0.7 std ::csv::writematrix \
    {checkSimpleArgs 2 4 {
	checkWord
	checkChannelID
	checkWord
	checkWord
    }}
pcx::check 0.7 std ::csv::writequeue \
    {checkSimpleArgs 2 4 {
	checkWord
	checkChannelID
	checkWord
	checkWord
    }}

# Initialization via pcx::init.
# Use a ::csv::init procedure for non-standard initialization.
pcx::complete