index.js 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.tokTypes = undefined;
  6. exports.parse = parse;
  7. var _parser = require("./parser");
  8. var _parser2 = _interopRequireDefault(_parser);
  9. require("./parser/util");
  10. require("./parser/statement");
  11. require("./parser/lval");
  12. require("./parser/expression");
  13. require("./parser/node");
  14. require("./parser/location");
  15. require("./parser/comments");
  16. var _types = require("./tokenizer/types");
  17. require("./tokenizer");
  18. require("./tokenizer/context");
  19. var _flow = require("./plugins/flow");
  20. var _flow2 = _interopRequireDefault(_flow);
  21. var _jsx = require("./plugins/jsx");
  22. var _jsx2 = _interopRequireDefault(_jsx);
  23. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24. _parser.plugins.flow = _flow2.default;
  25. _parser.plugins.jsx = _jsx2.default;
  26. function parse(input, options) {
  27. return new _parser2.default(options, input).parse();
  28. }
  29. exports.tokTypes = _types.types;