put character_parser in a library