organic/src/main.rs

15 lines
322 B
Rust
Raw Normal View History

2022-07-16 03:26:49 +00:00
use nom::multi::many1;
use crate::parser::paragraph;
mod parser;
const TEST_DOC: &'static str = include_str!("../toy_language.txt");
fn main() -> Result<(), Box<dyn std::error::Error>> {
pretty_env_logger::init();
println!("{}\n\n\n", TEST_DOC);
println!("{:#?}", many1(paragraph)(TEST_DOC));
Ok(())
}