Translate XML to AST using Marpa