title: Read lua-like code in php
body: <p>I got a question...
  I got code like this, and I want to read it with PHP.</p>
  
  <pre><code> NAME
   {
      title
      (
          A_STRING
      );
  
      settings
      {
          SetA( 15, 15 );
          SetB( "test" );
      }
  
      desc
      {
          Desc
          (
              A_STRING
          );
  
          Cond
          (
              A_STRING
          );  
  
      }
   }
  </code></pre>
  
  <p>I want:</p>
  
  <pre><code>$arr['NAME']['title'] = "A_STRING";
  $arr['NAME']['settings']['SetA'] = "15, 15";
  $arr['NAME']['settings']['SetB'] = "test";
  $arr['NAME']['desc']['Desc'] = "A_STRING";
  $arr['NAME']['desc']['Cond'] = "A_STRING";
  </code></pre>
  
  <p>I don't know how I should start :/. The variables aren't always the same.
  Can someone give me a hint on how to parse such a file?</p>
  
  <p>Thx</p>