The "/bf" flag chooses the language Brainfuck. We support and use () instead of [] for the loop in bf, since they are less magic in Tcl. The input operator ',' always reads 0 (as if EOF). The tape is 65536 32-bit integers, and loops. ====================================== Extensions: Set these letters in the XBF environment variable to add them to the used alphabet. Example: XBF=GAPN tclsh run.tcl /bf -p555 Notation: X means the tape position pointed to (the normal brainfuck thing). A is a new Accumulator register (also 32bit). Unary: "S" Sign: X = X<0 ? -1 : X>0 ? +1 : 0 "N" Negate: X = -X Using the Accumulator: "G" Get: A = X "P" Put: X = A "A" Add: A += X "M" Multiply: A *= X