def _build_config_tree(name, configuration):
 (type_, id_, options) = _get_type_id_options(name, configuration)
 global _INDENT, _current_statement
 _INDENT = ''
 if (type_ == 'config'):
  _current_statement = GivenStatement(options)
 elif (type_ == 'log'):
  _current_statement = UnnamedStatement(type='log')
  _parse_log_statement(options)
 else:
  if _is_statement_unnamed(type_):
   _current_statement = UnnamedStatement(type=type_)
  else:
   _current_statement = NamedStatement(type=type_, id=id_)
  _parse_statement(options)

def _build_config_tree ( name , configuration ) : ( type_ , id_ , options ) = _get_type_id_options ( name , configuration ) global _INDENT , _current_statement _INDENT = '' if ( type_ == 'config' ) : _current_statement = GivenStatement ( options ) elif ( type_ == 'log' ) : _current_statement = UnnamedStatement ( type = 'log' ) _parse_log_statement ( options ) else : if _is_statement_unnamed ( type_ ) : _current_statement = UnnamedStatement ( type = type_ ) else : _current_statement = NamedStatement ( type = type_ , id = id_ ) _parse_statement ( options )
build the configuration tree .