Add information on expected tokens to syntax errors

This now mimics the error messages provided by PHP itself (pre 5.4).