Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ parser_config.fsharp = {

The `package.json` defines some helpful targets for developing the grammar:

- `npm run generate` rebuilds all parser.
- Run commands from the repository root so tree-sitter picks up both grammars from `tree-sitter.json`.
- `npm run generate` rebuilds both parsers.
- `npx tree-sitter test` runs all tests for both parsers.
- `npx tree-sitter parse $file` run the `fsharp` parser on `$file` and outputs the parse tree.
- `npx tree-sitter parse -d $file` run the `fsharp` parser on `$file` and prints debug information.
- `npx tree-sitter parse $file` runs the `fsharp` parser on `$file` and outputs the parse tree.
- `npx tree-sitter parse -d $file` runs the `fsharp` parser on `$file` and prints debug information.
- For `.fsi` files, use `npx tree-sitter parse -p fsharp_signature $file` because `tree-sitter parse` does not reliably select the signature parser automatically.

## How to contribute

Expand Down
Loading
Loading