more work on send, remove yaml hack in test
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user