index.js 282 B

123456789
  1. import * as parser from "./grammar";
  2. import { tokenize } from "./tokenizer";
  3. export function parse(source) {
  4. var tokens = tokenize(source); // We pass the source here to show code frames
  5. var ast = parser.parse(tokens, source);
  6. return ast;
  7. }
  8. export * from "./number-literals";