Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/AbstractMachinesLab/tree-sitter-sexp
- Owner: AbstractMachinesLab
- License: apache-2.0
- Created: 2020-12-04T09:19:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-05T11:45:59.000Z (about 4 years ago)
- Last Synced: 2024-08-03T13:05:07.145Z (5 months ago)
- Language: Common Lisp
- Homepage:
- Size: 32.2 KB
- Stars: 24
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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))
```