use std::str::FromStr; grammar; pub Term: i32 = { => n, "(" ")" => t, }; Num: i32 = => i32::from_str(s).unwrap();