Parsing C like structured text into dict
===

I have config files structured like simplified C syntax, eg:

    Main { /* some comments */
        VariableName1 = VariableValue1;
        VariableName2 = VariableValue2;

        SubSection {
            VariableName1 = VariableValue1;
            VariableName2 = VariableValue2;
        }

        VariableName3 = "StriingValue4";
    }

Sections may be recursivesly nested.

How can I parse that file into `dict` in a clean and "pythonish" way?