pub fn grammar_to_output( grammar: &str, actions: &[Action], outputs: &[Output], ) -> Result<Vec<Result<String, String>>, String>