I'm implementing abstract syntax tree metamodel (ASTM) for my java parser. Now I done with parse tree with my grammar file. Now I tried to map parse tree to astm. I'm totally confused to map which to which, mapped If statement to IfStatement.java class but no idea to map conditions, thenbody, elsebody etc. Is there is any document for mapping?
ASTM reference link: http://www.omg.org/news/meetings/workshops/ADM_2005_Proceedings_FINAL/T-3_Newcomb.pdf astm source: https://github.com/adolfosbh/cs2as/tree/master/org.xtext.example.delphi/emf-gen/org/xtext/example/delphi/astm https://hal.inria.fr/hal-00752688/file/sosym-gra2mol.pdf