_Tcl::toList ^

Given a PMC, get a list from it. If the PMC is a TclList, this is as simple as returning the list.

_Tcl::toDict ^

Given a PMC, get a TclDict from it, converting as needed.

_Tcl::toNumber ^

Given a PMC, get a number from it.

_Tcl::toInteger ^

Given a PMC, get an integer from it.

_Tcl::getIndex ^

Given a tcl string index and an List pmc, return the corresponding numeric index.

_Tcl::getChannel ^

Given a string, return the appropriate channel.

_Tcl::compileExpr ^

Given an expression, return a subroutine, or optionally, the raw PIR

_Tcl::compileTcl ^

Given a chunk of tcl code, return a subroutine.

_Tcl::splitNamespace ^

Given a string namespace, return an array of names.

_Tcl::toBoolean ^

Given a string, return its boolean value if it's a valid boolean. Otherwise, throw an exception.

_Tcl::getCallLevel ^

Given a pmc containing the tcl-style call level, return an int-like pmc indicating the parrot-style level, and an integer with a boolean 0/1 - was this a valid tcl-style level, or did we get this value as a default?

_Tcl::backslash_newline_subst ^

Given a string of tcl code, perform the backslash/newline subsitution.


parrot