Update parser.rb

Added paragraph in comments explaining how the parse_file method and its related regular expression methods are organized together. Also added an explanation in comments on the raise_exception method.