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
|
# -*- tcl -*- iso8601.pcx
# Syntax of the commands provided by package iso8601.
# 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 clock::iso8601
pcx::tcldep 0.2 needs tcl 8.5
namespace eval ::clock::iso8601 {}
#pcx::message FOO {... text ...} type
#pcx::scan <VERSION> <NAME> <RULE>
# Switches are per clock scan (Tcl 8.5), restricted subset.
pcx::check 0.2 std ::clock::iso8601::parse_date \
{checkSimpleArgs 1 -1 {
checkWord
{checkSwitches 0 {
{-locale checkWord}
{-timezone checkWord}
{-base checkInt}
{-gmt checkBoolean}
} {}}
}}
pcx::check 0.2 std ::clock::iso8601::parse_time \
{checkSimpleArgs 1 -1 {
checkWord
{checkSwitches 0 {
{-locale checkWord}
{-timezone checkWord}
{-base checkInt}
{-gmt checkBoolean}
} {}}
}}
# Initialization via pcx::init.
# Use a ::iso8601::init procedure for non-standard initialization.
pcx::complete
|