mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
added the ability to print the parse tree
This commit is contained in:
@@ -27,6 +27,10 @@ exports.compile: (code) ->
|
||||
exports.tokenize: (code) ->
|
||||
lexer.tokenize code
|
||||
|
||||
# Just the nodes.
|
||||
exports.tree: (code) ->
|
||||
parser.parse lexer.tokenize code
|
||||
|
||||
|
||||
#---------- Below this line is obsolete, for the Ruby compiler. ----------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user