I was wondering if there are any parsers/tools to take out (and I guess substitute place holders) so that JS code that has PHP intermingled with it can be parsed by the google closure compiler tool.
If not, maybe someone has a clever idea (short of writing something like this) to avoid the tedious and messy task of doing it by hand.