Sha256: 58bcda906fc77a7487fa319b89e465ca3491a2d01bc4141c8c955375ba44c9f9
Contents?: true
Size: 729 Bytes
Versions: 11
Compression:
Stored size: 729 Bytes
Contents
#!/usr/bin/env rbx # A Fancy to rbx bytecode compiler. # # This compiler is written in Ruby, because it's easier to start # writing a working compiler with the given tools of Rubinius that are # written in Ruby than porting all that code to Fancy. # # Once we can compile Fancy to Rubinius we will reimplement the # compiler in Fancy and can still reuse the rubinius compiler # toolchain for actual bytecode file generation. # # This program is indended to be run using rbx. base = File.dirname(__FILE__) require base + '/compiler/compiler' require base + '/compiler/stages' require base + '/compiler/ast' require base + '/parser' if __FILE__ == $0 require base + '/compiler/command' Fancy::Compiler::Command.run ARGV end
Version data entries
11 entries across 11 versions & 1 rubygems