Did refactoring; parser type declation.

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