Sha256: b514cc497b4068ceee6a4a7084307a716990f6f588ddc4a8f618d82640119f6c
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'rubygems' gem 'treetop' require 'treetop' gem 'andand' require 'andand' require 'midiator' require 'gamelan' require 'drb' Treetop.load File.dirname(__FILE__) + '/clef' require 'core_ext/fixnum' require 'clef/utils' require 'clef/note' require 'clef/rest' require 'clef/harmony' require 'clef/sequence' require 'clef/environment' require 'clef/channel' require 'clef/console' module Clef def self.parse(expr) @parser ||= ClefParser.new @parser.parse(expr) end def self.evaluate(expr) self.parse(expr).andand.evaluate(self.environment) end def self.last_failure @parser.failure_reason end def self.environment DRbObject.new(nil, 'druby://localhost:12345') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teejayvanslyke-clef-0.0.0 | lib/clef.rb |