Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ajeetdsouza/tree-sitter-lox

Lox grammar for tree-sitter
https://github.com/ajeetdsouza/tree-sitter-lox

incremental lox lox-language parser parsing tree-sitter wasm

Last synced: 17 days ago
JSON representation

Lox grammar for tree-sitter

Awesome Lists containing this project

README

        

# tree-sitter-lox

[![crates.io](https://img.shields.io/crates/v/tree-sitter-lox)](https://crates.io/crates/tree-sitter-lox)

A **[Lox](https://craftinginterpreters.com/) grammar** for the
**[tree-sitter](https://github.com/tree-sitter/tree-sitter) parsing library**.

## Local setup

Install `tree-sitter-cli`:

```bash
cargo install tree-sitter-cli
```

To generate bindings:

```bash
tree-sitter generate
```

To run tests:

```bash
tree-sitter test
```

## References

- [Crafting Interpreters](https://craftinginterpreters.com/appendix-i.html)