Skip to content

Instantly share code, notes, and snippets.

@takahashim
Created July 27, 2008 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takahashim/2740 to your computer and use it in GitHub Desktop.
Save takahashim/2740 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
#
# delete comments for ripper in parse.y
#
str = File.read(ARGV[0])
str.gsub!(%r|/\*%.*?%\*/|m, '')
print str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment