index.js 393 B

1234567891011121314151617181920
  1. function merge() {
  2. var dest = {};
  3. for (var i = 0; i < arguments.length; i++) {
  4. var src = arguments[i];
  5. for (var key in src) {
  6. dest[key] = src[key];
  7. }
  8. }
  9. return dest;
  10. }
  11. module.exports = require('./create').create(
  12. merge(
  13. require('./config/lexer'),
  14. require('./config/parser'),
  15. require('./config/walker')
  16. )
  17. );