1. A numerical controller which controls a machine tool based on a numerical control program, the numerical controller comprising: a numerical control program execution section which executes a numerical control program; and a script calling section which calls a script program described in a script language from a numerical control program during execution of the numerical control program by the numerical control program execution section.