Skip to content

Commit

Permalink
updated build instructions, removed wasm from source code
Browse files Browse the repository at this point in the history
  • Loading branch information
gcrois committed Jul 9, 2024
1 parent 0bbe320 commit 428cca5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
# tree-sitter-hazel
A tree-sitter parser for the Hazel language
[Hazel language grammar](https://github.com/hazelgrove/hazel) for [tree-sitter](https://github.com/tree-sitter/tree-sitter)

## Install
```bash
npm install
```

## Build

For NodeJS and Rust, run:
```bash
npm run build
```

For WebAssembly, (for use in [web-tree-sitter](https://github.com/tree-sitter/tree-sitter/tree/master/lib/binding_web)), run:
```bash
npm run build:wasm
```
1 change: 0 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = grammar({
conflicts: $ => [
[$.expression, $.pat],
[$.expression, $.ident],
// [$.ident, $.expression],
[$.hole, $.ident],
[$.tuple_pat, $.tuple_exp],
[$.list_exp, $.list_pat],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "bindings/node",
"scripts": {
"test": "tree-sitter test && tree-sitter parse 'test/hazel-code/*.hazel' --quiet --stat",
"build": "tree-sitter generate"
"build": "tree-sitter generate",
"build:wasm": "tree-sitter build-wasm"
},
"author": "green726",
"license": "ISC",
Expand Down
Binary file removed tree-sitter-hazel.wasm
Binary file not shown.

0 comments on commit 428cca5

Please sign in to comment.