1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/lib/coffee-script.rb

20 lines
453 B
Ruby
Raw Normal View History

$LOAD_PATH.unshift(File.dirname(__FILE__))
require "coffee_script/lexer"
require "coffee_script/parser"
require "coffee_script/nodes"
2009-12-17 10:04:43 -05:00
require "coffee_script/value"
require "coffee_script/scope"
require "coffee_script/parse_error"
# Namespace for all CoffeeScript internal classes.
module CoffeeScript
VERSION = '0.1.0'
def self.compile(script)
script = script.read if script.respond_to?(:read)
Parser.new.parse(script).compile
end
end