Update state methods and add eof check

hrpsys_ros_bridge/euslisp/datalogger-log-parser.l : update state methods and add eof check