Class: CodeTools::Compiler::SexpPrinter

Inherits:
Printer show all
Defined in:
lib/rubinius/code/compiler/printers.rb

Instance Attribute Summary

Attributes inherited from Stage

#next_stage, #printer

Instance Method Summary collapse

Methods inherited from Printer

#initialize

Methods inherited from Stage

#create_next_stage, #initialize, #input, #insert, next_stage, next_stage_class, #processor, #run_next, stage, stage_name

Constructor Details

This class inherits a constructor from CodeTools::Compiler::Printer

Instance Method Details

#runObject



19
20
21
22
23
24
25
# File 'lib/rubinius/code/compiler/printers.rb', line 19

def run
  require 'pp'

  puts @input.to_sexp.pretty_inspect
  @output = @input
  run_next
end