Sha256: a4b2cfb9d7dcb68b0e4727af69d9baf6ef390856920e07a8b6011b0084e604c3

Contents?: true

Size: 1.24 KB

Versions: 27

Compression:

Stored size: 1.24 KB

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
var _exportNames = {
  parse: true
};
exports.parse = parse;

var parser = _interopRequireWildcard(require("./grammar"));

var _tokenizer = require("./tokenizer");

var _numberLiterals = require("./number-literals");

Object.keys(_numberLiterals).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _numberLiterals[key];
    }
  });
});

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; } }

function parse(source) {
  var tokens = (0, _tokenizer.tokenize)(source); // We pass the source here to show code frames

  var ast = parser.parse(tokens, source);
  return ast;
}

Version data entries

27 entries across 26 versions & 9 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.18.0 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.18.2 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.16.1 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.15.2 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.18.4 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.18.1 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.14.0 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
tang-0.2.1 spec/tang_app/node_modules/@webassemblyjs/wast-parser/lib/index.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@webassemblyjs/wast-parser/lib/index.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@webassemblyjs/wast-parser/lib/index.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@webassemblyjs/wast-parser/lib/index.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@webassemblyjs/wast-parser/lib/index.js
tang-0.2.0 spec/tang_app/node_modules/@webassemblyjs/wast-parser/lib/index.js
tang-0.1.0 spec/tang_app/node_modules/@webassemblyjs/wast-parser/lib/index.js
tang-0.0.9 spec/tang_app/node_modules/@webassemblyjs/wast-parser/lib/index.js
enju_library-0.3.8 spec/dummy/node_modules/@webassemblyjs/wast-parser/lib/index.js
jester-data-8.0.0 node_modules/@webassemblyjs/wast-parser/lib/index.js