Download this file
36 lines (28 with data), 634 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
29
30
31
32
33
34
35 | <?php
function python_command($cmd,$parms) {
switch($cmd) {
case "print": echo $parms; break;
}
}
function python_for() {
echo "START-FOR";
}
function python_for_end() {
echo "END-FOR";
}
function dump_token($token) {
echo '<div style="padding:0 2px;font-size:9px;background:#99AA00;color:#323232;border:1px solid #323232;margin:0 0 1px 0;">';
echo '<strong>'.$token["name"].'</strong>: '.$token["value"];
echo '</div>';
}
function python_assign($names,$values) {
var_dump($names);
var_dump($values);
global ${$names};
${$names} = $values;
}
function python_list($v) {
echo "List: ";
var_dump($v);
return 1;
}
|
×
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.