~tim/scheme-vm

ref: 82e799de37eb74f44fef9422a1cc72e4a56ac1fa scheme-vm/test.rb -rw-r--r-- 205 bytes
82e799deTim Morgan Use ruby-sys to integrate better with Ruby 4 years ago
                                                                                
1
2
3
4
5
6
7
require 'fiddle'

library = Fiddle::dlopen('target/release/libscheme_vm.dylib')
init_parser = Fiddle::Function.new(library['init_parser'], [], Fiddle::TYPE_VOID)
init_parser.call

p Parser.ok?(ARGV.first)