cirru_parser

Crates.iocirru_parser
lib.rscirru_parser
version0.1.31
sourcesrc
created_at2021-04-13 16:16:16.562013
updated_at2024-06-02 17:12:41.734517
descriptionParser for Cirru text syntax
homepagehttp://cirru.org
repositoryhttps://github.com/Cirru/parser.rs
max_upload_size
id382968
size64,917
题叶 (tiye)

documentation

https://docs.rs/crate/cirru_parser/

README

Cirru Parser in Rust

Usages

Found on crate .

Rust Docs.

cargo install cirru_parser
use cirru_parser::{parse};

parse("defn f (x)\n  x"); // returns Result<Vec<Cirru>, String>

use writer:

use cirru_parser::{format, CirruWriterOptions, escape_cirru_leaf}

let writer_options = CirruWriterOptions { use_inline: false };
format(tree, writer_options); // tree is Vec<Cirru>

escape_cirru_leaf("a b");

License

MIT

Commit count: 98

cargo fmt