lihata example applications

The source distribution includes the following example applications:
name class description
cfg_simple (<200 lines) event parsing Load named settings (key=value pairs) from a lihata document that has a single hash in its root into native C variables. Variable names and pointers are given as a constant table in C. Supports error handling:
  • each value can be set only once (as lihata hash mandates)
  • unknown names will cause error
  • settings may have default value
  • when marked as required, a missing key causes error