tree-sitter-sexp
tree-sitter-sexp copied to clipboard
Tree sitter grammar for S-expressions
trafficstars
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))