detect and report syntax errors in source code strings