refactor parser
make parser.rb executable