Skip to content

Files

Latest commit

d72d364 · Jul 24, 2025

History

History

parser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 24, 2025
Jul 4, 2025
May 23, 2022
Nov 5, 2021
Nov 22, 2022
Jul 28, 2021
Apr 10, 2025
Dec 30, 2021
Apr 10, 2025
Jan 25, 2024
Jul 3, 2023
Nov 17, 2022
Apr 5, 2024
Jul 24, 2025
Jun 30, 2025
Jan 25, 2024
May 3, 2022
Jul 24, 2025
Jul 24, 2025
May 8, 2025
May 8, 2025
Dec 4, 2024
May 20, 2022
May 10, 2022
May 8, 2025
May 20, 2022
May 20, 2022
Jan 4, 2023
May 24, 2025
Mar 29, 2022
Jan 25, 2024
Jan 25, 2024
Dec 30, 2021
Dec 30, 2021
Nov 21, 2022
Aug 5, 2022
Aug 20, 2024
Aug 20, 2024
Jun 18, 2025
Apr 22, 2025
Jan 25, 2024
Dec 30, 2021
Dec 30, 2021
Jun 30, 2025
Jul 31, 2023
Jul 4, 2025
Jun 30, 2025
Jun 30, 2025
Mar 9, 2025
Jan 25, 2024
Jan 25, 2024
Jan 25, 2024
Jan 25, 2024
Dec 30, 2021
Dec 30, 2021
Jul 24, 2025
Oct 24, 2024
Oct 22, 2024
Dec 30, 2021
Dec 30, 2021
Apr 10, 2025
Jan 25, 2024

README.md

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.

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