An action of the CLI that prints out the doc tree IR for the given source.
#failure, #success
105 106 107 108 109
# File 'lib/syntax_tree/cli.rb', line 105 def run(handler, _filepath, source) formatter = Formatter.new(source, []) handler.parse(source).format(formatter) pp formatter.groups.first end