more work on send, remove yaml hack in test

This commit is contained in:
Torsten Ruger
2014-08-21 22:57:20 +03:00
parent 2260c680b2
commit 5b1e86da49
8 changed files with 49 additions and 23 deletions

View File

@ -1,5 +1,6 @@
require_relative '../helper'
require 'parslet/convenience'
require "yaml"
module VirtualHelper
# need a code generator, for arm
@ -17,18 +18,3 @@ module VirtualHelper
end
end
require "yaml" # not my first choice, but easy with graphs
# for readability of the yaml output :next of instructions last
Psych::Visitors::YAMLTree.class_eval do
private
def dump_ivars target
ivars = find_ivars target
ivars << :@next if ivars.delete(:@next)
ivars.each do |iv|
@emitter.scalar("#{iv.to_s.sub(/^@/, '')}", nil, nil, true, false, Psych::Nodes::Scalar::ANY)
accept target.instance_variable_get(iv)
end
end
end