Extracted SharedPtrInterface.
Cpplint fix; parser.y bug fix.