https://github.com/fastpack/flow_parser
Flow parser with Fastpack-specific modifications
https://github.com/fastpack/flow_parser
Last synced: about 1 year ago
JSON representation
Flow parser with Fastpack-specific modifications
- Host: GitHub
- URL: https://github.com/fastpack/flow_parser
- Owner: fastpack
- License: mit
- Created: 2018-09-28T12:23:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T12:40:22.000Z (over 7 years ago)
- Last Synced: 2025-01-10T05:22:36.249Z (over 1 year ago)
- Language: OCaml
- Size: 138 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flow_parser
Flow parser with Fastpack-specific modifications
# Upgrading the Flow version
Change version in the `Makefile` and `package.json` and run:
```bash
$ make clean && make flow
```
Copy the parser code to `lib/`:
```bash
$ cp -R flow/src/parser/* lib
```
Manually modify `lib/parser_env.mli`:
```
36a37
+ types_in_comments: bool;
```
And `lib/parser_env.ml`:
```
161a162
+ types_in_comments: bool;
170a172
+ types_in_comments = true;
229c231
- let enable_types_in_comments = parse_options.types in
---
+ let enable_types_in_comments = parse_options.types && parse_options.types_in_comments in
```
Make sure it compiles and test passes:
```bash
$ make test
...
types_in_comments=false: OK
types_in_comments=true: OK
```
To publish the package, run:
```
$ npm publish
```