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

@@ -479,6 +479,7 @@ module CoffeeScript
def compile(o={})
o = super(o)
o.delete(:return)
indent = o[:indent] + TAB
cond = @condition.compile(o.merge(:no_paren => true))
write("while (#{cond}) {\n#{@body.compile(o.merge(:indent => indent))}\n#{o[:indent]}}")