moving print_tokens (the pretty printer) from coffee_script to command_line

This commit is contained in:
Jeremy Ashkenas
2010-02-24 18:56:32 -05:00
parent b26e577244
commit 2a46e13d33
13 changed files with 49 additions and 46 deletions

View File

@@ -38,8 +38,3 @@ exports.tokenize: (code) ->
exports.tree: (code) ->
parser.parse lexer.tokenize code
# Pretty-print a token stream.
exports.print_tokens: (tokens) ->
strings: for token in tokens
'[' + token[0] + ' ' + token[1].toString().replace(/\n/, '\\n') + ']'
puts strings.join(' ')