This is not HDL syntax.
Hint: you need to use a Nand gate in the PARTS: section.
Read the
Hardware Construction Survival Kit and look at the Xor.hdl example in
Chapter 1, figure 1.6 for examples of HDL.
The details of the HDL language are in
Appendix A.
--Mark