ok, got all the formula parsing fixed. There was a bug in the actual parser library that didn't like relational operators as parameters to functions.
The remaining errors in the "stock" components.txt are..actual errors. Basically, some of the components refer to effects that don't exist.
For example, Crystalline Torpedo has the lines
Code:
Weapon Space Display Effect Name := Torpedo 11
Weapon Ground Display Effect Name := Torpedo 11
These should be Torp 11, which actually does exist. So, the errors that it reports for the stock data file are actual errors.