"endo" is when you go over the handlebars on a bicycle, but "parse error at end of input" usually means that your code is not complete - something like a missing brace or generally confusing the compiler in some way.
If you post the code, maybe we can help you.
--
Mats