pub fn create_grammars_hashmap( grammars: Vec<Box<GrammarItem>>, ) -> HashMap<String, Vec<Arc<GrammarItem>>>