fixed 'Parser' scoping issue

missing "begin ... end" around the try block lead to a non-exhaustive pattern
matching warning.