The IN and OUT lines take care of defining the input and output of the Not gate. They say that it has on input names "in" and one output named "out".
The lines in the PARTS section define how to build the Not gate using known parts. Your HDL says, "to build a Not gate, use a Not gate."
The problem is that when you are building the Not gate, the
only part that you have available to use in the PARTS section is Nand.
You should read
The Hardware Construction Survival Kit if you have not yet done so.
--Mark