Those sound more like errors which yuicompressor has found in your .js file and it can't do its magic until the syntax errors are resolved.
For example: missing } after function body... even though everything is closed properly
Go through your .js file with a fine-tooth comb (or a JavaScript editor which flags syntax errors) and see if you can find the problem in there.