Skip to content

Commit

Permalink
add tips and instructions for rust
Browse files Browse the repository at this point in the history
  • Loading branch information
1Kinoti committed May 8, 2023
1 parent 49b8508 commit a2daa0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ a [`sample config file`][105] is provided to get you started.
> ts hl ts.nu
```

## using the parser from rust
1. the code is located at [`exanples/main.rs`][106]
2. run it with `cargo run --example main`

## tips
- A line in the grammar.js that begins with `$._blah` means that `blah` is anonymous and won't show up in the final syntax tree.
- Most of the grammar how-to is found [here](https://tree-sitter.github.io/tree-sitter/creating-parsers#the-grammar-dsl)


## getting help

if you need any help or have a question, ping me `(@1Kinoti)` on the
Expand Down Expand Up @@ -104,3 +113,4 @@ if you need any help or have a question, ping me `(@1Kinoti)` on the
[103]: ./corpus/
[104]: ./ts.nu
[105]: ./resources/sample-config.json
[106]: ./examples/main.rs

0 comments on commit a2daa0d

Please sign in to comment.