░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/ruby_parser-3.20.1/tools
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: ripper.rb
#!/usr/bin/env ruby -ws $b ||= false # bug mode -- ripper is buggy, use Ripper.sexp $d ||= false # debug -- turn on yydebug $p ||= false # Use pp require "ripper/sexp" require "pp" if $p if ARGV.empty? then warn "reading from stdin" ARGV << "-" end class MySexpBuilder < Ripper::SexpBuilderPP def on_parse_error msg Kernel.warn msg end end ARGV.each do |path| src = path == "-" ? $stdin.read : File.read(path) sexp = if $b then Ripper.sexp src else rip = MySexpBuilder.new src rip.yydebug = $d rip.parse if rip.error? then warn "skipping" next end end puts "accept" if $p then pp sexp else p sexp end end
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 munge.rb
RB
8.2 KB
2023-09-24 03:48
EDIT
📄 ripper.rb
RB
756 B
2023-09-24 03:48
EDIT