#!/usr/bin/env ruby # # delete comments for ripper in parse.y # str = File.read(ARGV[0]) str.gsub!(%r|/\*%.*?%\*/|m, '') print str