summaryrefslogtreecommitdiffstats
path: root/node_modules/@webassemblyjs/wast-parser/esm/index.js
blob: 70cda3800c8d47f5a54683423ceb05272ea14f11 (plain) (blame)
1
2
3
4
5
6
7
8
9
import * as parser from "./grammar";
import { tokenize } from "./tokenizer";
export function parse(source) {
  var tokens = tokenize(source); // We pass the source here to show code frames

  var ast = parser.parse(tokens, source);
  return ast;
}
export * from "./number-literals";