ringels

Crates.ioringels
lib.rsringels
version0.1.0
sourcesrc
created_at2024-02-08 19:29:34.323357
updated_at2024-02-08 19:29:34.323357
descriptionSimple S-Expression parser
homepage
repositoryhttps://git.cijber.net/eater/ringels
max_upload_size
id1132599
size31,914
eater (the-eater)

documentation

README

ß (Ringel-S)

A simple S-Expression parser

Features

  • 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

fn example() {
    let parser = ParserOptions::new()
        .with_comments()
        .build_with_tracker::<OffsetTracker>("(hello #| world |#)");
  
  let Some(Ok(node)) = parser.next() else { panic!(":(") };
  
}
Commit count: 0

cargo fmt