added and= and or= to the language.

This commit is contained in:
Jeremy Ashkenas
2010-07-24 22:36:50 -07:00
parent 88847df70b
commit f9dff6ffc4
6 changed files with 36 additions and 54 deletions

View File

@@ -30,7 +30,7 @@ lexer = new Lexer
# Compile a string of CoffeeScript code to JavaScript, using the Coffee/Jison
# compiler.
exports.compile = compile = (code, options) ->
options ||= {}
options or= {}
try
(parser.parse lexer.tokenize code).compile options
catch err