Added function to get abstract syntax tree.