JSPM

flow-parser

0.45.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5942953
  • Score
    100M100P100Q201426F
  • License BSD-3-Clause

JavaScript parser written in OCaml. Produces SpiderMonkey AST

Package Exports

  • flow-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flow-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

The Flow Parser

The Flow Parser is a JavaScript parser written in OCaml. It produces an AST that conforms to SpiderMonkey's Parser API and that mostly matches what esprima produces. The Flow Parser can be compiled to native code or can be compiled to JavaScript using js_of_ocaml.

Building the Flow Parser

Building the Flow Parser requires OCaml. Compiling to JavaScript requires js_of_ocaml >= 2.8.

Initial set up

Building the OCaml Flow Parser library

make

Compiling the Flow Parser to JavaScript

make js

Tests

The Flow Parser's test suite tests the JavaScript version of the parser, so you will need js_of_ocaml installed. The tests and tools also have some node module dependencies, so you will need to run

Initial set up

Running the Tests

make test