# -*- tcl -*- units.pcx
# Syntax of the commands provided by package units.
#
# For use by TclDevKit's static syntax checker (v4.1+).
# 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 specification of the format of the code in this file.
#

package require pcx
pcx::register units
pcx::tcldep   2.1 needs tcl 8.1

namespace eval ::units {}

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

# TODO: 1/ value = int+unit string
#       2/ dstunit = check against std units
pcx::check 2.1 std ::units::convert \
    {checkSimpleArgs 2 2 {
	checkWord
	checkWord
    }}
pcx::check 2.1 std ::units::new \
    {checkSimpleArgs 2 2 {
	checkWord
	checkWord
    }}
pcx::check 2.1 std ::units::reduce \
    {checkSimpleArgs 1 1 {
	checkWord
    }}

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