Skip to content

AbstractMachinesLab/tree-sitter-sexp

Repository files navigation

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

Getting Started

You can add this lib as a dependency:

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

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

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

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

About

Tree sitter grammar for S-expressions

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published