Integrating parser with ast