diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -32,6 +32,9 @@ impl Parser { /// format. pub fn new(s: &str) -> Result<Self, String> { let grammar: Grammar = s.parse().map_err(|err| format!("{err}"))?; + + println!("grammar: {grammar}"); + let atom: DefaultAtom = DefaultAtom::from_grammar(grammar).map_err(|err| format!("{err}"))?; @@ -480,8 +483,8 @@ extern "C" fn parser_parse( match forest { Ok(forest) => { - // use graph::Graph; - // forest.print_viz("test forest.gv").unwrap(); + use graph::Graph; + forest.print_viz("test forest.gv").unwrap(); Box::leak(parser_box); |