I tried to .MOD the Pathfinder Cleric class, to give it SPELLBOOK:YES and KNOWSPELLS:.CLEAR. The loading window responded with something like ".CLEAR is not a spell".
So, the tag isn't being interpreted appropriately. (Alternately, it may be that KNOWNSPELLS isn't supposed to be able to use .CLEAR, in which case this is a documentation bug instead.)
The correct syntax would be KNOWNSPELLS:.CLEARALL
Looking at the Docs, and at the code in plugin/lsttokens/pcclass/knownspells, it apears that "LEVEL=Number" is the required syntax for spell level designation and that "TYPE=Text" is an additional parameter that can be used. Based upon this I would put the final syntax as:
Variable : Text
Variable : TYPE=Text
Variable : LEVEL=Number
Variable : .CLEARALL
The docs themselves state that a Class Level Line 0 (zero) acts, and is treated by PCGen as, a Class Line. Is this correct?
Corrected .CLEAR to .CLEARALL and cleanup entry in general.