Permalink
Browse files

Removed `Parser#debug()`

  • Loading branch information...
1 parent b3f4c1d commit 5ea12ef913e344053e116b8758452c9ed495d44c @tj tj committed Aug 26, 2011
Showing with 0 additions and 15 deletions.
  1. +0 −1 lib/jade.js
  2. +0 −14 lib/parser.js
View
@@ -91,7 +91,6 @@ function parse(str, options){
try {
// Parse
var parser = new Parser(str, filename, options);
- if (options.debug) parser.debug();
// Compile
var compiler = new (options.compiler || Compiler)(parser.parse(), options)
View
@@ -40,20 +40,6 @@ var textOnly = exports.textOnly = ['code', 'script', 'textarea', 'style', 'title
Parser.prototype = {
/**
- * Output parse tree to stdout.
- *
- * @api public
- */
-
- debug: function(){
- var lexer = new Lexer(this.input)
- , tree = require('sys').inspect(this.parse(), false, 12, true);
- console.log('\n\x1b[1mParse Tree\x1b[0m:\n');
- console.log(tree);
- this.lexer = lexer;
- },
-
- /**
* Return the next token object.
*
* @return {Object}

0 comments on commit 5ea12ef

Please sign in to comment.