token model php code example
Example 1: php token
class token {
public $type;
public $token;
public $val;
public function __construct($type, $token, $val) {
$this->type = $type;
$this->token = $token;
$this->val = $val;
}
}
Example 2: php token
define("IS_OPERATOR", 0);
define("IS_OPERAND", 1);