Commits

Michael Granger committed 96d7a4b

Add an experiment

  • Participants
  • Parent commits 54367e5

Comments (0)

Files changed (1)

File experiments/codeobjects.rb

+#!/usr/bin/env ruby
+
+require 'pp'
+require 'ripper'
+
+
+class CodeObjectParser < Ripper::SexpBuilderPP
+
+	def initialize( * )
+		@yydebug = true
+		super
+	end
+
+	# def on_comment( *content )
+	# 	[ :comment, content ]
+	# end
+
+end
+
+src = ARGF.each.to_a.join
+pp CodeObjectParser.new( src ).parse
+