Sha256: 412d50e981370fae938223b286c3c0a1615572adb235bc22f35ff08ffd3ceba8
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "blockly_interpreter" program_name = ARGV[0] unless program_name puts "Please specify a program name to compile." exit! end module ConsoleDSL def console_print(content = nil, &proc) block :console_print do value :VALUE do if block_given? instance_exec &proc else text content end end end end end BlocklyInterpreter::DSL::BlockContext.send :include, ConsoleDSL xml = BlocklyInterpreter::DSL.build_xml do binding.eval(File.open(program_name).read, program_name) end STDOUT.write xml
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blockly_interpreter-0.3.0 | exe/rublocklyc |
blockly_interpreter-0.2.1 | exe/rublocklyc |
blockly_interpreter-0.2.0 | exe/rublocklyc |