Class: MilkTea::PrettyPrinter::IRFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- MilkTea::PrettyPrinter::IRFormatter
- 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
Instance Method Summary collapse
Methods inherited from BaseFormatter
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 |