Crates.io | cirru_parser |
lib.rs | cirru_parser |
version | 0.1.31 |
source | src |
created_at | 2021-04-13 16:16:16.562013 |
updated_at | 2024-06-02 17:12:41.734517 |
description | Parser for Cirru text syntax |
homepage | http://cirru.org |
repository | https://github.com/Cirru/parser.rs |
max_upload_size | |
id | 382968 |
size | 64,917 |
Found on crate .
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");
MIT