Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/AbstractMachinesLab/tree-sitter-sexp

Tree sitter grammar for S-expressions
https://github.com/AbstractMachinesLab/tree-sitter-sexp

Last synced: about 1 month ago
JSON representation

Tree sitter grammar for S-expressions

Awesome Lists containing this project

README

        

# tree-sitter grammar for S-expressions (+ Rust bindings)

## Getting Started

You can add this lib as a dependency:

```toml
[dependencies]
tree-sitter-sexp = { git = "https://github.com/AbstractMachinesLab/tree-sitter-sexp" }
```

And then you can parse strings with the `Sexp` struct like this:

```rust
let sexprs = Sexp::of_str("(hello (world))")?;

sexprs.to_string();
// (hello (world))
```