Fixing event loop back to while(read ok) process();
Removing goto s.
Fewer explicit returns, more elseifs.
Escape < to <<, else parsing the output stream is impossible.