From 1b420d64c0e705080522d8370da244811b775c30 Mon Sep 17 00:00:00 2001 From: Derek Stride Date: Fri, 26 Jul 2024 13:41:17 -0400 Subject: [PATCH] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a4ac51e..36c7793 100644 --- a/README.md +++ b/README.md @@ -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