index.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = exports.program = exports.expression = exports.statements = exports.statement = exports.smart = void 0;
  6. var formatters = _interopRequireWildcard(require("./formatters"));
  7. var _builder = _interopRequireDefault(require("./builder"));
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
  10. const smart = (0, _builder.default)(formatters.smart);
  11. exports.smart = smart;
  12. const statement = (0, _builder.default)(formatters.statement);
  13. exports.statement = statement;
  14. const statements = (0, _builder.default)(formatters.statements);
  15. exports.statements = statements;
  16. const expression = (0, _builder.default)(formatters.expression);
  17. exports.expression = expression;
  18. const program = (0, _builder.default)(formatters.program);
  19. exports.program = program;
  20. var _default = Object.assign(smart.bind(undefined), {
  21. smart,
  22. statement,
  23. statements,
  24. expression,
  25. program,
  26. ast: smart.ast
  27. });
  28. exports.default = _default;