Did refactoring; parser func declation.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>