NAME ^

tcl.ops

DESCRIPTION ^

A dynamic opcode library for tcl on parrot that provides a few opcodes that simplify PIR generation for tclPIR generation for tcl

BUGS: pull out the TCL_ constants, as well as the code slot (#9) and the message slot (#0)

Flow control opcodes ^

These opcodes are used to generate exception return values. (Anything that isn't a TCL_OK)

tcl_error(in PMC)

tcl_error(in STR)

tcl_error(in INT, in PMC)

Generate an exception condition for tcl. If no error code is specified, default to TCL_ERROR.

tcl_return(in PMC)

tcl_return(in STR)

Generate a TCL_RETURN, returning the specified value

tcl_break()

Generate a TCL_BREAK

tcl_continue()

Generate a TCL_CONTINUE


parrot