mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 11:01:25 -05:00
done for now
This commit is contained in:
@@ -21,9 +21,11 @@ exports.VERSION: '0.5.0'
|
||||
|
||||
# Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
||||
exports.compile: (code) ->
|
||||
tokens: lexer.tokenize code
|
||||
nodes: parser.parse tokens
|
||||
nodes.compile()
|
||||
(parser.parse lexer.tokenize code).compile()
|
||||
|
||||
# Just the tokens.
|
||||
exports.tokenize: (code) ->
|
||||
lexer.tokenize code
|
||||
|
||||
|
||||
#---------- Below this line is obsolete, for the Ruby compiler. ----------------
|
||||
|
||||
Reference in New Issue
Block a user