Object Grammars: Compositional & Bidirectional Mapping Between Text and Graphs