Implemented conversion of productions into AST.