Object-oriented AST extension for Parser