public function AddGlobalVariable(
        \Peg\Lib\Definitions\Element\GlobalVariable $global_variable, 
        $namespace = "\\"
    )
    {
        $this->CreateNamespace($namespace);
        
        $global_variable->header =& $this;
        $global_variable->namespace =& $this->namespaces[$namespace];

        $this->namespaces[$namespace]
            ->global_variables[$global_variable->name] = $global_variable
        ;
    }
public function AddGlobalVariable(
        \Peg\Lib\Definitions\Element\GlobalVariable $global_variable, 
        $namespace = "\\"
    )
    {
        $this->CreateNamespace($namespace);
        
        $global_variable->header =& $this;
        $global_variable->namespace =& $this->namespaces[$namespace];

        $this->namespaces[$namespace]
            ->global_variables[$global_variable->name] = $global_variable
        ;
    }
public function AddGlobalVariable ( \ Peg \ Lib \ Definitions \ Element \ GlobalVariable $ global_variable , $ namespace = "\\" ) { $ this -> CreateNamespace ( $ namespace ) ; $ global_variable -> header = & $ this ; $ global_variable -> namespace = & $ this -> namespaces [ $ namespace ] ; $ this -> namespaces [ $ namespace ] -> global_variables [ $ global_variable -> name ] = $ global_variable ; }
Adds a new global variable.
@param \Peg\Lib\Definitions\Element\GlobalVariable $global_variable
@param string $namespace
Adds a new global variable .