Skip to main content

KVGroup syntax

A KVGroup has a key, a name, and its contents. It contains a set of key-value pairs, as well as a set of “inner” KVGroups. There is no limit to the level of nested KVGroups.

Write a KVGroup as follows:

 "<key>" "<name>" = { 
     <contents> 
     ... 
  } 

You write a key-value pair as follows:

"<key>" = "<value>"

Note

The word "key" has a dual use. A group has a key and the items contained within a group (pairs and inner groups) also have keys.

The following example illustrates how a KVGroup can contain multiple groups and key-value pairs:

 "capitals" "world capitals grouped by continent" = { 
   "NA" "North America" = { 
     "USA" = "Washington" 
     "Canada" = "Ottawa" 
   } 
   "Eur" "Europe" = { 
     "Britain" = "London" 
   } 
  }