// Generated by CoffeeScript 2.5.1
(function() {
  var parser;

  parser = require('../lib/query-parser.pegjs');

  module.exports = {
    parse: function(input) {
      var e, terms, tokens;
      try {
        return parser.parse(input);
      } catch (error) {
        e = error;
        tokens = input.split(/[\t\n\r ()]+/);
        terms = tokens.map(function(t) {
          return ['TERM', t];
        });
        return ['SEQ', ...terms];
      }
    }
  };

}).call(this);
