moving from collect to each

when iterating over tree.
Much cleaner, less hokuspukus methods that are noops

Mom is coming back out, but not linked yet
This commit is contained in:
Torsten Ruger
2018-03-15 17:22:56 +05:30
parent 3702411043
commit 3247c2036c
10 changed files with 37 additions and 35 deletions

View File

@ -23,7 +23,7 @@ module MomCompile
def compile_first_method input
lst = Vool::VoolCompiler.ruby_to_vool as_test_main( input )
assert_equal Parfait::Class , lst.clazz.class , input
assert_equal Parfait::Class , lst.clazz.class , lst
@method = lst.clazz.get_method(:main)
assert_equal Parfait::VoolMethod , @method.class
res = lst.to_mom( nil )