├── README.md ├── interp.rb ├── test1-1.rb ├── test1-2.rb ├── test1-3.rb ├── test1-4.rb ├── test1-5.rb ├── test2-1.rb ├── test2-2.rb ├── test2-3.rb ├── test2-4.rb ├── test2-5.rb ├── test3-1.rb ├── test3-2.rb ├── test3-3.rb ├── test3-4.rb ├── test3-5.rb ├── test4-1.rb ├── test4-2.rb ├── test4-3.rb ├── test4-4.rb ├── test5-1.rb ├── test5-2.rb ├── test5-3.rb ├── test5-4.rb ├── test6-1.rb ├── test6-2.rb └── test6-3.rb /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/README.md -------------------------------------------------------------------------------- /interp.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/interp.rb -------------------------------------------------------------------------------- /test1-1.rb: -------------------------------------------------------------------------------- 1 | # This should work with no modification of interp.rb 2 | p(1 + 1) #=> 2 3 | -------------------------------------------------------------------------------- /test1-2.rb: -------------------------------------------------------------------------------- 1 | p(4 - 3) #=> 1 2 | -------------------------------------------------------------------------------- /test1-3.rb: -------------------------------------------------------------------------------- 1 | p(3 * 4) 2 | -------------------------------------------------------------------------------- /test1-4.rb: -------------------------------------------------------------------------------- 1 | p(11 % 6 / 2) 2 | -------------------------------------------------------------------------------- /test1-5.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test1-5.rb -------------------------------------------------------------------------------- /test2-1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test2-1.rb -------------------------------------------------------------------------------- /test2-2.rb: -------------------------------------------------------------------------------- 1 | x = 42 2 | p(x) 3 | -------------------------------------------------------------------------------- /test2-3.rb: -------------------------------------------------------------------------------- 1 | x = 8 * 5 2 | y = x + 2 3 | p(y) 4 | -------------------------------------------------------------------------------- /test2-4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test2-4.rb -------------------------------------------------------------------------------- /test2-5.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test2-5.rb -------------------------------------------------------------------------------- /test3-1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test3-1.rb -------------------------------------------------------------------------------- /test3-2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test3-2.rb -------------------------------------------------------------------------------- /test3-3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test3-3.rb -------------------------------------------------------------------------------- /test3-4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test3-4.rb -------------------------------------------------------------------------------- /test3-5.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test3-5.rb -------------------------------------------------------------------------------- /test4-1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test4-1.rb -------------------------------------------------------------------------------- /test4-2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test4-2.rb -------------------------------------------------------------------------------- /test4-3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test4-3.rb -------------------------------------------------------------------------------- /test4-4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test4-4.rb -------------------------------------------------------------------------------- /test5-1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test5-1.rb -------------------------------------------------------------------------------- /test5-2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test5-2.rb -------------------------------------------------------------------------------- /test5-3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test5-3.rb -------------------------------------------------------------------------------- /test5-4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test5-4.rb -------------------------------------------------------------------------------- /test6-1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test6-1.rb -------------------------------------------------------------------------------- /test6-2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test6-2.rb -------------------------------------------------------------------------------- /test6-3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mame/cookpad-hackarade-minruby/HEAD/test6-3.rb --------------------------------------------------------------------------------