add .def format reader logic

Add .def format reader logic. The .def file will be used to define HLSL,
CG and Unity3d keywords/datetype/functions, etc.