Class: MilkTea::PrettyPrinter::IRFormatter

Inherits:
BaseFormatter show all
Defined in:
lib/milk_tea/core/pretty_printer/ir_formatter.rb

Constant Summary collapse

IF_EXPRESSION_PRECEDENCE =
5
POSTFIX_PRECEDENCE =
90
UNARY_PRECEDENCE =
80

Constants inherited from BaseFormatter

BaseFormatter::INDENT

Instance Method Summary collapse

Methods inherited from BaseFormatter

#initialize

Constructor Details

This class inherits a constructor from MilkTea::PrettyPrinter::BaseFormatter

Instance Method Details

#format(node) ⇒ Object



10
11
12
13
# File 'lib/milk_tea/core/pretty_printer/ir_formatter.rb', line 10

def format(node)
  emit_program(node)
  finish
end