it's not a homework assignment :)
thanks for the link. I'm looking to parse a simple but unknown configuration file format deduced only from known good examples.
Are you sure it's context sensitive grammar rather than a collection of N context free grammars? Many file format standards can be expressed as context free grammars.
If you are trying to figure out something like "what is the unknown XML structure" based on an example file or files then you are firmly inside natural language processing.