Sha256: 686551620efe635ec252a6152305ef4026372aeb8482567399a1d37f2fdabf3b
Contents?: true
Size: 555 Bytes
Versions: 18
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true module Unparser class Emitter # Emitter for flip flops class FlipFlop < self MAP = { iflipflop: '..', eflipflop: '...' }.freeze SYMBOLS = { eflipflop: :tDOT3, iflipflop: :tDOT2 }.freeze def symbol_name true end handle(*MAP.keys) children :left, :right private def dispatch visit(left) write(MAP.fetch(node.type)) visit(right) end end # FlipFLop end # Emitter end # Unparser
Version data entries
18 entries across 18 versions & 2 rubygems