Exemple #1
0
 public function __construct($message, $srcLine = 0)
 {
     parent::__construct($message . ' on line ' . $srcLine);
     $this->srcLine = $srcLine;
 }
 public function __construct($tokenType)
 {
     parent::__construct('Invalid token type ' . $tokenType);
     $this->tokenType = $tokenType;
 }
Exemple #3
0
 public function __construct($index)
 {
     parent::__construct('No token found in the TokenStream at index ' . $index);
 }