You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
568 B
Markdown

3 months ago
# ß (Ringel-S)
A simple S-Expression parser
## Features
- [miette](http://crates.io/crates/miette) error reporting with source annotation
> use the `miette` feature and either `OffsetTracker` or `LineTracker` as tracker
- Location tracking of tokens and nodes
- UTF-8/String first
- Top level can contain multiple nodes
## Example
```rust
fn example() {
let parser = ParserOptions::new()
.with_comments()
.build_with_tracker::<OffsetTracker>("(hello #| world |#)");
let Some(Ok(node)) = parser.next() else { panic!(":(") };
}
```