fixin up narwhal factory and adding more implicit blocks to the lexer

This commit is contained in:
Jeremy Ashkenas
2009-12-30 14:32:59 -05:00
parent ea58be2838
commit f93e552cb3
7 changed files with 35 additions and 46 deletions

View File

@@ -6,13 +6,13 @@ factories: {}
loader: {
# Reload the coffee-script environment from source.
reload: topId, path =>
reload: topId =>
coffeescript ||= require('coffee-script')
factories[topId]: coffeescript.makeNarwhalFactory(path)
factories[topId]: => coffeescript
# Ensure that the coffee-script environment is loaded.
load: topId, path =>
factories[topId] ||= this.reload(topId, path)
load: topId =>
factories[topId] ||= this.reload(topId)
}