the narwhal integration written in JavaScript has been replaced with CoffeeScript, and compiler-generated variable names now start with '__'

This commit is contained in:
Jeremy Ashkenas
2009-12-24 23:09:24 -08:00
parent d8ceb3b4bb
commit 2d57ee693b
9 changed files with 177 additions and 106 deletions

View File

@@ -0,0 +1,20 @@
# This (javascript) file is generated from lib/coffee_script/narwhal/loader.cs
coffeescript: null
CoffeeScriptLoader: =>
loader: {}
factories: {}
loader.reload: topId, path =>
coffeescript ||: require('coffee-script')
# print("loading objective-j: " + topId + " (" + path + ")");
factories[topId]: coffeescript.make_narwhal_factory(path).
loader.load: topId, path =>
loader.reload(topId, path) unless factories.hasOwnProperty(topId)
factories[topId].
loader.
require.loader.loaders.unshift([".cs", CoffeeScriptLoader()])