Updated parser.c, foreign.c, foreign.h

implementation of "input" element in "in table" insertion mode.