Download this file
23 lines (18 with data), 387 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | <?php
class lang_python_token {
public $name;
public $value;
public $length;
public function __construct($name,$value=null,$length=0) {
$this->name = $name;
$this->value = $value;
$this->length = $length;
}
public function getValue() {
if (is_object($this->value)) {
return $this->value->name;
} else {
return $this->value;
}
}
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.