a simple decoder for block-based configuration files