Abstract: Machine tool (10), in particular a cutting machine tool, comprising at least one digital storage unit (34) in which a machining program code that codes the machining process of a workpiece by means of the machine tool (10) and a monitoring program code that codes a monitoring process for monitoring the machining process are stored. According to the invention, it is intended that a script editor (38) is stored in the digital storage unit (34) for inputting and/or reading modification commands that change the monitoring process, and a compiler is also stored in the digital storage unit (34) that is designed to automatically generate an executable process monitoring pro- gram code from the monitoring program code and the modification commands.