phpython Code
a python interpreter written in php
Status: Pre-Alpha
Brought to you by:
francescobianco
--- a/trunk/python/python-interface.php +++ b/trunk/python/python-interface.php @@ -41,4 +41,20 @@ return 1; } -function python_mod($a,$b){return is_integer($a)?$a%$b:$a;} \ No newline at end of file +function python_mod($a,$b){return is_integer($a)?$a%$b:$a;} + +function python_class_start($a) { + $name = $a->name; + var_dump($a); +} + +function python_class_end($a) { + $name = $a->name; + $classfile = __PHPYTHON_CACHE_PATH__.$name.'.class'; + $classcode = '<?php + class '.$name.' { + + }'; + file_put_contents($classfile,$classcode); + require_once($classfile); +} \ No newline at end of file