Implemented AST parser