Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skalt/template-tree-sitter-grammar

A template repository for creating tree-sitter grammars
https://github.com/skalt/template-tree-sitter-grammar

template template-project tree-sitter tree-sitter-cli tree-sitter-parser

Last synced: about 4 hours ago
JSON representation

A template repository for creating tree-sitter grammars

Awesome Lists containing this project

README

        

# Quickstart

```sh
#!/usr/bin/env bash
dest="${dest:-tree-sitter-grammar-GRAMMAR-NAME-HERE}"
npx degit SKalt/template-tree-sitter-grammar "$dest" \
&& cd "$dest" \
&& git init \
&& yarn
# optionally
yarn init
```

with npm

```sh
#!/usr/bin/env bash
dest="${dest:-'tree-sitter-GRAMMAR-NAME-HERE'}"
npx degit SKalt/template-tree-sitter-grammar "$dest" \
&& cd "$dest" \
&& git init \
&& npm install
# optionally
npm init
```

without degit

```sh
#!/usr/bin/env bash
dest="${dest:-tree-sitter-grammar-GRAMMAR-NAME-HERE}"
git clone https://github.com/SKalt/template-tree-sitter-grammar.git "$dest" \
&& cd "$dest" \
&& rm -rf ./.git \
&& git init \
&& yarn install
# optionally
yarn init
```

```sh
source ./scripts/workspace.sh # puts the local tree-sitter cli on your $PATH
```