コード例 #1
0
ファイル: TokenFunction.php プロジェクト: tboloo/figdice
 /**
  * @param string $name
  * @param integer $arity
  */
 public function __construct($name, $arity)
 {
     parent::__construct(self::PRIORITY_FUNCTION);
     $this->name = $name;
     $this->arity = $arity;
     $this->function = null;
     $this->closed = false;
 }
コード例 #2
0
ファイル: TokenUnarySign.php プロジェクト: tboloo/figdice
 /**
  * @param string $sign
  */
 public function __construct($sign)
 {
     parent::__construct(self::PRIORITY_MINUS);
     $this->sign = $sign;
 }
コード例 #3
0
ファイル: TokenMul.php プロジェクト: tboloo/figdice
 public function __construct()
 {
     parent::__construct(self::PRIORITY_MUL_DIV);
 }
コード例 #4
0
ファイル: TokenNot.php プロジェクト: tboloo/figdice
 /**
  * @param string $sign
  */
 public function __construct()
 {
     parent::__construct(self::PRIORITY_MINUS);
 }
コード例 #5
0
ファイル: TokenLParen.php プロジェクト: tboloo/figdice
 public function __construct()
 {
     parent::__construct(self::PRIORITY_LEFT_PAREN);
 }