Example #1
0
 public function loadFile($filename)
 {
     $contents = file_get_contents($filename);
     $compiler = new self($contents);
     $compiler->fetchLoads();
     $compiler->fetchConstants();
     $this->constants = array_merge($this->constants, $compiler->getConstants());
 }