We demonstrate an optically mode-locked laser that generates a repetit
ive pattern of ultrashort pulses when driven by a repetitive pattern o
f optical pulses from an external source. Two modes of operation are d
escribed: in one mode of operation the generated pattern is determined
directly by the driving pulse train; in the other mode it represents
the result of logic operations between elements of the driving pulse t
rain.