mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
b02672b130
* update pre-compiler * test passed for variable pars of print() * variable pars is tested ok for print() * skip arg_num check for variable * support *val in the preCompiler * add file * Merge branch 'dev' of https://gitee.com/lyon1998/pikascript into dev * fix warning * both update ByteCodeGen * use super instead of parent * create PikaList C list struct * use args inner the PikaStdData.List() * use PikaDict in PikaStdData.Dict() * support dict in c * support dict in c * clean Tinyobj
38 lines
771 B
Python
38 lines
771 B
Python
# api
|
|
from PikaObj import *
|
|
|
|
|
|
class MemChecker(TinyObj):
|
|
def max(self): ...
|
|
def now(): ...
|
|
def getMax() -> float: ...
|
|
def getNow() -> float: ...
|
|
def resetMax(): ...
|
|
|
|
|
|
class SysObj(BaseObj):
|
|
def type(arg: any): ...
|
|
def remove(argPath: str): ...
|
|
def int(arg: any) -> int: ...
|
|
def float(arg: any) -> float: ...
|
|
def str(arg: any) -> str: ...
|
|
def iter(arg: any) -> any: ...
|
|
def range(a1: int, a2: int) -> any: ...
|
|
def __set__(obj: any, key: any, val: any, obj_str: str): ...
|
|
def __get__(obj: any, key: any) -> any: ...
|
|
def print(self, *val): ...
|
|
|
|
|
|
class RangeObj(TinyObj):
|
|
def __next__() -> any:
|
|
pass
|
|
|
|
|
|
class StringObj(TinyObj):
|
|
def __next__() -> any:
|
|
pass
|
|
|
|
|
|
class PikaObj(TinyObj):
|
|
pass
|