Menu

[r25]: / trunk / python / python-interface.php  Maximize  Restore  History

Download this file

34 lines (26 with data), 445 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
<?php
function python_print($parms) {
echo $parms;
}
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 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.