
var parse = require('./src/parser');
var Lexer = require('./src/lexer');

module.exports = function(input, options) {
  options = Object.assign({}, { spellcheck: false, smartquotes: true }, options || {});
  var lex = Lexer();
  var lexResults = lex(input);
  var output = parse(input, lexResults.tokens.split(' '), lexResults.positions, options);
  return output;
}

@@ -252,16 +252,43 @@
 input);%0A
+  console.log(lexResults);%0A
   var ou
@@ -329,13 +329,12 @@
 ens.
-split
+join
 (' '

fix index usage