Download this file
28 lines (22 with data), 464 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 | <?php
class lang_python_token {
public $row;
public $col;
public $len;
public $name;
public $value;
public function __construct($row,$col,$name,$value=null,$len=0) {
$this->row = $row;
$this->col = $col;
$this->len = $len;
$this->name = $name;
$this->value = $value;
}
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.