Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Config format
02-28-2011, 03:09 PM,
#1
Config format
To make car configs a bit more readable I've implemented some alternatives to the current ini derived format. All three are available, can be read and written interchangeably. The parsers are minimal, won't check input for correctness.

Code:
# ini (current)
key1 = value1

[key2.key3]
key4 = value4

[key2]
key5 = value5

; inf
key1 value1
key2
{
    key3
    {
        key4 value4
    }
    key5 value5
}

<!-- xml  -->
<key1>value1</key1>
<key2>
    <key3>
        <key4>value4</key4>
    </key3>
    <key5>value5</key5>
</key2>

Any opinions, suggestions?
Reply


Messages In This Thread
Config format - by NaN - 02-28-2011, 03:09 PM
[No subject] - by zimluura - 02-28-2011, 03:27 PM
[No subject] - by NaN - 02-28-2011, 03:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)