Replace SharedPtrNode with WeakPtrNode in parser.y.