[−][src]Function liblet::production::production_table
pub fn production_table<I>(productions: I) -> String where
I: IntoIterator<Item = Production>,
Convenience function for creating visual representation of a collection of productions, ordered.
Examples
use liblet::production::{production_table, productions}; let p = productions(" A -> B C B -> b "); let result = production_table(p); assert_eq!(result, "0: A -> B C\n1: B -> b");