index.js 309 B

123456789101112131415
  1. 'use strict';
  2. // To generate parser.js run the following command in the current directory:
  3. //
  4. // npx jison-gho parser.jison -o parser.js
  5. const parse = require('./parser').parse;
  6. /**
  7. * @param {string} exp
  8. * @returns {object}
  9. */
  10. module.exports = function parseCalcExpression(exp) {
  11. return parse(exp);
  12. };