The layer lines indicate which layer of material will be specified in the file next. It consists of the name of the material enclosed in two chevrons as shown in the name of this section. All polygons specified after this line are taken to be polygons of the specified material until another one of these lines is encountered in the .mag file. The names of the layers of material must match those given in the technology file under the types section. A space must appear after the second < and before the first >.
There are two special layer statements. These are ones where the layer specified is either labels or end. In the first case, the line indicates that the lines to follow define not polygons, but labels that exist in the circuit. The end line indicates the end of the Magic file and Carafe will ignore the rest of the .mag file.