Did refactoring; parse.go.

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