Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekStride authored Jul 26, 2024
1 parent 4a5fda8 commit 1b420d6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ tar -xzf gh-pages.tar.gz
cd tree-sitter-sql-gh-pages
```

### [Cargo](https://crates.io/crates/tree-sitter-sequel)
### Step 2: Compile the Parser

Tree-sitter parsers need to be compiled as a shared-object / dynamic-library, you can enable this by passing the
`-shared` & `-fPIC` flags to your compiler.

```bash
cargo add tree-sitter-sequel
cc -shared -fPIC -I./src src/parser.c src/scanner.c -o sql.so
```

### [NPM](https://www.npmjs.com/package/@derekstride/tree-sitter-sql)
### Using [Cargo](https://crates.io/crates/tree-sitter-sequel)

```bash
npm i @derekstride/tree-sitter-sql
cargo add tree-sitter-sequel
```

### Step 2: Compile the Parser

Tree-sitter parsers need to be compiled as a shared-object / dynamic-library, you can enable this by passing the
`-shared` & `-fPIC` flags to your compiler.
### Using [NPM](https://www.npmjs.com/package/@derekstride/tree-sitter-sql)

```bash
cc -shared -fPIC -I./src src/parser.c src/scanner.c -o sql.so
npm i @derekstride/tree-sitter-sql
```

## Development
Expand Down

0 comments on commit 1b420d6

Please sign in to comment.