script to parse classes/functions/variables in php