mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
fix pico-dev
This commit is contained in:
parent
531dced423
commit
32ca8b23b9
@ -769,6 +769,11 @@
|
||||
<AccSizeX>0</AccSizeX>
|
||||
</Mm>
|
||||
</MemoryWindow1>
|
||||
<ScvdPack>
|
||||
<Filename>D:\Users\lyon\AppData\Local\Arm\Packs\Keil\ARM_Compiler\1.7.2\EventRecorder.scvd</Filename>
|
||||
<Type>Keil.ARM_Compiler.1.7.2</Type>
|
||||
<SubType>1</SubType>
|
||||
</ScvdPack>
|
||||
<ToolboxButtons>
|
||||
<Wi>
|
||||
<IntNumber>0</IntNumber>
|
||||
@ -1339,7 +1344,7 @@
|
||||
|
||||
<Group>
|
||||
<GroupName>pikascript-core</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
@ -1675,6 +1680,42 @@
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>69</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\..\..\package\PikaStdLib\PikaStdData_ByteArray.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_ByteArray.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>70</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\..\..\package\PikaStdLib\PikaStdData_FILEIO.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_FILEIO.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>71</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\..\..\package\PikaStdLib\PikaStdData_Tuple.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_Tuple.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
@ -1685,19 +1726,7 @@
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>69</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaMain-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaMain-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>70</FileNumber>
|
||||
<FileNumber>72</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
@ -1707,30 +1736,6 @@
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>71</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdLib_MemChecker-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdLib_MemChecker-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>72</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdLib_RangeObj-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdLib_RangeObj-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>73</FileNumber>
|
||||
@ -1738,102 +1743,6 @@
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdLib_SysObj-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdLib_SysObj-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>74</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdLib-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdLib-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>75</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdData_Dict-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_Dict-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>76</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdData_List-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_List-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>77</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdData-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>78</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdLib_StringObj-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdLib_StringObj-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>79</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdData_String-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_String-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>80</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdLib_PikaObj-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdLib_PikaObj-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>81</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\__asset_pikaModules_py_a.c</PathWithFileName>
|
||||
<FilenameWithoutPath>__asset_pikaModules_py_a.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
@ -1841,85 +1750,13 @@
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>82</FileNumber>
|
||||
<FileNumber>74</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaDebug_Debuger-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaDebug_Debuger-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>83</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaDebug-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaDebug-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>84</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdData_ByteArray-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_ByteArray-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>85</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdTask_Task-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdTask_Task-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>86</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdTask-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdTask-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>87</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdData_dict_keys-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_dict_keys-api.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>88</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\PikaStdData_Utils-api.c</PathWithFileName>
|
||||
<FilenameWithoutPath>PikaStdData_Utils-api.c</FilenameWithoutPath>
|
||||
<PathWithFileName>..\..\pikascript\pikascript-api\__pikaBinding.c</PathWithFileName>
|
||||
<FilenameWithoutPath>__pikaBinding.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
@ -1933,7 +1770,7 @@
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>89</FileNumber>
|
||||
<FileNumber>75</FileNumber>
|
||||
<FileType>5</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -961,110 +961,40 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Utils.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_ByteArray.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_FILEIO.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_FILEIO.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Tuple.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Tuple.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>pikascript-api</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>PikaMain-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaMain-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>pikaScript.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\pikaScript.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_MemChecker-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_MemChecker-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_RangeObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_RangeObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_SysObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_SysObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Dict-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Dict-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_List-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_List-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_StringObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_StringObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_String-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_String-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_PikaObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_PikaObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>__asset_pikaModules_py_a.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__asset_pikaModules_py_a.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug_Debuger-api.c</FileName>
|
||||
<FileName>__pikaBinding.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug_Debuger-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_ByteArray-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask_Task-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask_Task-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_dict_keys-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_dict_keys-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Utils-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Utils-api.c</FilePath>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__pikaBinding.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
@ -2044,110 +1974,40 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Utils.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_ByteArray.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_FILEIO.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_FILEIO.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Tuple.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Tuple.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>pikascript-api</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>PikaMain-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaMain-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>pikaScript.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\pikaScript.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_MemChecker-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_MemChecker-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_RangeObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_RangeObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_SysObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_SysObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Dict-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Dict-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_List-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_List-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_StringObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_StringObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_String-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_String-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_PikaObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_PikaObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>__asset_pikaModules_py_a.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__asset_pikaModules_py_a.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug_Debuger-api.c</FileName>
|
||||
<FileName>__pikaBinding.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug_Debuger-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_ByteArray-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask_Task-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask_Task-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_dict_keys-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_dict_keys-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Utils-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Utils-api.c</FilePath>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__pikaBinding.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
@ -3126,110 +2986,40 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Utils.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_ByteArray.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_FILEIO.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_FILEIO.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Tuple.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Tuple.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>pikascript-api</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>PikaMain-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaMain-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>pikaScript.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\pikaScript.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_MemChecker-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_MemChecker-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_RangeObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_RangeObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_SysObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_SysObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Dict-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Dict-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_List-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_List-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_StringObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_StringObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_String-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_String-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_PikaObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_PikaObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>__asset_pikaModules_py_a.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__asset_pikaModules_py_a.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug_Debuger-api.c</FileName>
|
||||
<FileName>__pikaBinding.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug_Debuger-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_ByteArray-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask_Task-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask_Task-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_dict_keys-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_dict_keys-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Utils-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Utils-api.c</FilePath>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__pikaBinding.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
@ -4208,110 +3998,40 @@
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Utils.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_ByteArray.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_FILEIO.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_FILEIO.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Tuple.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\..\..\package\PikaStdLib\PikaStdData_Tuple.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>pikascript-api</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>PikaMain-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaMain-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>pikaScript.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\pikaScript.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_MemChecker-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_MemChecker-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_RangeObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_RangeObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_SysObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_SysObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Dict-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Dict-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_List-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_List-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_StringObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_StringObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_String-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_String-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdLib_PikaObj-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdLib_PikaObj-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>__asset_pikaModules_py_a.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__asset_pikaModules_py_a.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug_Debuger-api.c</FileName>
|
||||
<FileName>__pikaBinding.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug_Debuger-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaDebug-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaDebug-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_ByteArray-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_ByteArray-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask_Task-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask_Task-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdTask-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdTask-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_dict_keys-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_dict_keys-api.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>PikaStdData_Utils-api.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\..\pikascript\pikascript-api\PikaStdData_Utils-api.c</FilePath>
|
||||
<FilePath>..\..\pikascript\pikascript-api\__pikaBinding.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
|
@ -145,28 +145,56 @@ int main(void)
|
||||
|
||||
/* create pikaMain root obj */
|
||||
PikaObj* pikaMain = newRootObj((char*)"pikaMain", New_PikaMain);
|
||||
/* parse python to pikaAsm */
|
||||
Args* buffs = New_strBuff();
|
||||
|
||||
char *pikaAsm = Parser_multiLineToAsm(buffs, (char *)
|
||||
"num = 0\n"
|
||||
"i = 2\n"
|
||||
"for i in range(2,100):\n"
|
||||
" j=2\n"
|
||||
" is_prime = 1\n"
|
||||
" for j in range(2,i):\n"
|
||||
" if i%j==0 :\n"
|
||||
" is_prime = 0\n"
|
||||
" break\n"
|
||||
" if is_prime:\n"
|
||||
" num = num + i\n"
|
||||
"\n");
|
||||
/* clang-format off */
|
||||
PIKA_PYTHON(
|
||||
num = 0
|
||||
i = 2
|
||||
for i in range(2,100):
|
||||
j=2
|
||||
is_prime = 1
|
||||
for j in range(2,i):
|
||||
if i%j==0 :
|
||||
is_prime = 0
|
||||
break
|
||||
if is_prime:
|
||||
num = num + i
|
||||
|
||||
|
||||
)
|
||||
/* clang-format on */
|
||||
const uint8_t bytes[] = {
|
||||
0xb4, 0x00, 0x00, 0x00, /* instruct array size */
|
||||
0x00, 0x85, 0x01, 0x00, 0x00, 0x04, 0x03, 0x00, 0x00, 0x85, 0x07, 0x00,
|
||||
0x00, 0x04, 0x09, 0x00, 0x20, 0x85, 0x07, 0x00, 0x20, 0x05, 0x0b, 0x00,
|
||||
0x10, 0x02, 0x0f, 0x00, 0x00, 0x02, 0x15, 0x00, 0x00, 0x04, 0x1a, 0x00,
|
||||
0x00, 0x82, 0x1e, 0x00, 0x00, 0x04, 0x09, 0x00, 0x00, 0x0d, 0x09, 0x00,
|
||||
0x00, 0x07, 0x07, 0x00, 0x01, 0x85, 0x07, 0x00, 0x01, 0x04, 0x2b, 0x00,
|
||||
0x01, 0x85, 0x2d, 0x00, 0x01, 0x04, 0x2f, 0x00, 0x21, 0x85, 0x07, 0x00,
|
||||
0x21, 0x01, 0x09, 0x00, 0x11, 0x02, 0x0f, 0x00, 0x01, 0x02, 0x15, 0x00,
|
||||
0x01, 0x04, 0x38, 0x00, 0x01, 0x82, 0x3c, 0x00, 0x01, 0x04, 0x2b, 0x00,
|
||||
0x01, 0x0d, 0x2b, 0x00, 0x01, 0x07, 0x07, 0x00, 0x22, 0x81, 0x09, 0x00,
|
||||
0x22, 0x01, 0x2b, 0x00, 0x12, 0x08, 0x49, 0x00, 0x12, 0x05, 0x01, 0x00,
|
||||
0x02, 0x08, 0x4b, 0x00, 0x02, 0x07, 0x2d, 0x00, 0x03, 0x85, 0x01, 0x00,
|
||||
0x03, 0x04, 0x2f, 0x00, 0x03, 0x8e, 0x00, 0x00, 0x01, 0x86, 0x4e, 0x00,
|
||||
0x01, 0x8c, 0x38, 0x00, 0x01, 0x81, 0x2f, 0x00, 0x01, 0x07, 0x2d, 0x00,
|
||||
0x12, 0x81, 0x03, 0x00, 0x12, 0x01, 0x09, 0x00, 0x02, 0x08, 0x51, 0x00,
|
||||
0x02, 0x04, 0x03, 0x00, 0x00, 0x86, 0x4e, 0x00, 0x00, 0x8c, 0x1a, 0x00,
|
||||
/* instruct array */
|
||||
0x53, 0x00, 0x00, 0x00, /* const pool size */
|
||||
0x00, 0x30, 0x00, 0x6e, 0x75, 0x6d, 0x00, 0x32, 0x00, 0x69, 0x00, 0x31, 0x30,
|
||||
0x30, 0x00, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x00, 0x69, 0x74, 0x65, 0x72,
|
||||
0x00, 0x24, 0x6c, 0x30, 0x00, 0x24, 0x6c, 0x30, 0x2e, 0x5f, 0x5f, 0x6e,
|
||||
0x65, 0x78, 0x74, 0x5f, 0x5f, 0x00, 0x6a, 0x00, 0x31, 0x00, 0x69, 0x73,
|
||||
0x5f, 0x70, 0x72, 0x69, 0x6d, 0x65, 0x00, 0x24, 0x6c, 0x31, 0x00, 0x24,
|
||||
0x6c, 0x31, 0x2e, 0x5f, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x5f, 0x00,
|
||||
0x25, 0x00, 0x3d, 0x3d, 0x00, 0x2d, 0x31, 0x00, 0x2b, 0x00, /* const pool */
|
||||
};
|
||||
__cycleof__("", {
|
||||
nCycleUsed_pika = _;
|
||||
printf("[prime_number_100_pika] Cycle Used %lld\r\n", _);
|
||||
}) {
|
||||
/* run pika Asm */
|
||||
pikaVM_runAsm(pikaMain, pikaAsm);
|
||||
/* run pika ByteCode */
|
||||
pikaVM_runByteCode(pikaMain, (uint8_t*)bytes);
|
||||
}
|
||||
int num = obj_getInt(pikaMain, "num");
|
||||
if ( num != 1060){
|
||||
|
@ -1,10 +1,6 @@
|
||||
#api
|
||||
from PikaObj import *
|
||||
|
||||
class Debuger(TinyObj):
|
||||
class Debuger:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def set_trace(self):
|
||||
pass
|
||||
|
@ -1,6 +1,24 @@
|
||||
class TinyObj:...
|
||||
class BaseObj(TinyObj):...
|
||||
class pointer:...
|
||||
class any:...
|
||||
def printNoEnd(val: any):
|
||||
pass
|
||||
class TinyObj:
|
||||
...
|
||||
|
||||
|
||||
class BaseObj(TinyObj):
|
||||
...
|
||||
|
||||
|
||||
class pointer:
|
||||
...
|
||||
|
||||
|
||||
class any:
|
||||
...
|
||||
|
||||
|
||||
class int64:
|
||||
...
|
||||
|
||||
|
||||
def printNoEnd(val: any): ...
|
||||
def abstractmethod(fn): ...
|
||||
def PIKA_C_MACRO_IF(fn): ...
|
||||
def PIKA_C_MACRO_IFDEF(fn): ...
|
||||
|
@ -1,78 +1,171 @@
|
||||
from PikaObj import *
|
||||
|
||||
|
||||
class List(TinyObj):
|
||||
class Tuple:
|
||||
def __init__(self): ...
|
||||
# add an arg after the end of list
|
||||
def append(self, arg: any): ...
|
||||
# get an arg by the index
|
||||
def get(self, i: int) -> any: ...
|
||||
# set an arg by the index
|
||||
def set(self, i: int, arg: any): ...
|
||||
# get the length of list
|
||||
def len(self) -> int: ...
|
||||
# support for loop
|
||||
def __iter__(self) -> any: ...
|
||||
# support for loop
|
||||
def __next__(self) -> any: ...
|
||||
# support list[] = val
|
||||
def __setitem__(self, __key: any, __val: any): ...
|
||||
# support val = list[]
|
||||
def __getitem__(self, __key: any) -> any: ...
|
||||
|
||||
def get(self, i: int) -> any:
|
||||
"""get an arg by the index"""
|
||||
|
||||
def len(self) -> int:
|
||||
"""get the length of list"""
|
||||
|
||||
def __iter__(self) -> any:
|
||||
"""support for loop"""
|
||||
|
||||
def __next__(self) -> any:
|
||||
"""support for loop"""
|
||||
|
||||
def __getitem__(self, __key: any) -> any:
|
||||
"""support val = list[]"""
|
||||
|
||||
def __del__(self): ...
|
||||
def __str__(self) -> str: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
def __contains__(self, val: any) -> int:
|
||||
""" support val in list """
|
||||
|
||||
|
||||
class Dict(TinyObj):
|
||||
class List(Tuple):
|
||||
def __init__(self): ...
|
||||
# get an arg by the key
|
||||
|
||||
def append(self, arg: any):
|
||||
"""add an arg after the end of list"""
|
||||
|
||||
def set(self, i: int, arg: any):
|
||||
"""set an arg by the index"""
|
||||
|
||||
def reverse(self):
|
||||
"""reverse the list"""
|
||||
|
||||
def pop(self) -> any:
|
||||
"""pop the last element"""
|
||||
|
||||
def remove(self, val: any):
|
||||
"""remove the first element"""
|
||||
|
||||
def insert(self, i: int, arg: any):
|
||||
"""insert an arg before the index"""
|
||||
|
||||
def __setitem__(self, __key: any, __val: any):
|
||||
"""support list[] = val"""
|
||||
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
def __add__(self, others: List) -> List:
|
||||
""" support list + list"""
|
||||
|
||||
|
||||
class Dict:
|
||||
def __init__(self):
|
||||
""" get an arg by the key """
|
||||
|
||||
def get(self, key: str) -> any: ...
|
||||
# set an arg by the key
|
||||
def set(self, key: str, arg: any): ...
|
||||
# remove an arg by the key
|
||||
def remove(self, key: str): ...
|
||||
|
||||
def set(self, key: str, arg: any):
|
||||
""" set an arg by the key """
|
||||
|
||||
def remove(self, key: str):
|
||||
""" remove an arg by the key """
|
||||
|
||||
def __iter__(self) -> any: ...
|
||||
def __next__(self) -> any: ...
|
||||
# support dict[] = val
|
||||
def __setitem__(self, __key: any, __val: any): ...
|
||||
# support val = dict[]
|
||||
def __getitem__(self, __key: any) -> any: ...
|
||||
|
||||
def __setitem__(self, __key: any, __val: any):
|
||||
""" support dict[] = val """
|
||||
|
||||
def __getitem__(self, __key: any) -> any:
|
||||
""" support val = dict[] """
|
||||
|
||||
def __del__(self): ...
|
||||
def __str__(self) -> str: ...
|
||||
def keys(self) -> dict_keys: ...
|
||||
def items(self) -> dict_items: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
def __contains__(self, val: any) -> int:
|
||||
""" support val in dict """
|
||||
|
||||
def update(self, other: Dict):
|
||||
""" update dict """
|
||||
|
||||
|
||||
class dict_keys(TinyObj):
|
||||
class dict_keys:
|
||||
def __iter__(self) -> any: ...
|
||||
def __next__(self) -> any: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
|
||||
class String(TinyObj):
|
||||
class dict_items:
|
||||
def __iter__(self) -> any: ...
|
||||
def __next__(self) -> any: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
|
||||
class String:
|
||||
def __init__(self, s: str): ...
|
||||
def set(self, s: str): ...
|
||||
def get(self) -> str: ...
|
||||
def __iter__(self) -> any: ...
|
||||
def __next__(self) -> any: ...
|
||||
# support string[] = val
|
||||
def __setitem__(self, __key: any, __val: any): ...
|
||||
# support val = string[]
|
||||
def __getitem__(self, __key: any) -> any: ...
|
||||
# support str()
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
def startwith(self, prefix: str) -> int: ...
|
||||
def endwith(self, suffix: str) -> int: ...
|
||||
def __setitem__(self, __key: any, __val: any):
|
||||
""" support string[] = val """
|
||||
|
||||
def __getitem__(self, __key: any) -> any:
|
||||
""" support val = string[] """
|
||||
|
||||
def __str__(self) -> str:
|
||||
""" support str() """
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
def encode(self, *encoding) -> bytes: ...
|
||||
def startswith(self, prefix: str) -> int: ...
|
||||
def endswith(self, suffix: str) -> int: ...
|
||||
def isdigit(self) -> int: ...
|
||||
def islower(self) -> int: ...
|
||||
def isalnum(self) -> int: ...
|
||||
def isalpha(self) -> int: ...
|
||||
def isspace(self) -> int: ...
|
||||
def split(self, s: str) -> List: ...
|
||||
def replace(self, old: str, new: str) -> str: ...
|
||||
def strip(self, *chrs) -> str: ...
|
||||
def format(self, *vars) -> str: ...
|
||||
|
||||
|
||||
class ByteArray(List):
|
||||
# convert a string to ByteArray
|
||||
def fromString(self, s: str): ...
|
||||
class ByteArray:
|
||||
def __init__(self, bytes: any):
|
||||
""" convert a bytes to ByteArray """
|
||||
|
||||
def __iter__(self) -> any:
|
||||
""" support for loop """
|
||||
|
||||
def __next__(self) -> any:
|
||||
""" support for loop """
|
||||
|
||||
def __getitem__(self, __key: int) -> int:
|
||||
""" support [] index """
|
||||
|
||||
def __setitem__(self, __key: int, __val: int): ...
|
||||
def __str__(self) -> str: ...
|
||||
def decode(self) -> str: ...
|
||||
|
||||
|
||||
class Utils(TinyObj):
|
||||
# convert a int to bytes
|
||||
def int_to_bytes(self, val: int) -> bytes: ...
|
||||
class FILEIO:
|
||||
def init(self, path: str, mode: str) -> int: ...
|
||||
def read(self, *size) -> any: ...
|
||||
def write(self, s: any) -> int: ...
|
||||
def close(self): ...
|
||||
def seek(self, offset: int, *fromwhere) -> int: ...
|
||||
def tell(self) -> int: ...
|
||||
def readline(self) -> str: ...
|
||||
def readlines(self) -> List: ...
|
||||
def writelines(self, lines: List): ...
|
||||
|
||||
|
||||
class Utils:
|
||||
def int_to_bytes(self, val: int) -> bytes:
|
||||
""" convert a int to bytes """
|
||||
|
@ -1,45 +1,141 @@
|
||||
from PikaObj import *
|
||||
|
||||
|
||||
class MemChecker(TinyObj):
|
||||
class MemChecker:
|
||||
def max(self): ...
|
||||
def now(self): ...
|
||||
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def getMax(self) -> float: ...
|
||||
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def getNow(self) -> float: ...
|
||||
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def resetMax(self): ...
|
||||
|
||||
|
||||
class SysObj(BaseObj):
|
||||
def type(self, arg: any): ...
|
||||
def remove(self, argPath: str): ...
|
||||
def int(self, arg: any) -> int: ...
|
||||
def float(self, arg: any) -> float: ...
|
||||
def str(self, arg: any) -> str: ...
|
||||
def iter(self, arg: any) -> any: ...
|
||||
def range(self, a1: int, a2: int) -> any: ...
|
||||
def print(self, *val): ...
|
||||
def printNoEnd(self, val: any): ...
|
||||
def __setitem__(self, obj: any, key: any, val: any, obj_str: str): ...
|
||||
def __getitem__(self, obj: any, key: any) -> any: ...
|
||||
def __slice__(self, obj: any, start: any, end: any, step: int) -> any: ...
|
||||
def len(self, arg: any) -> int: ...
|
||||
def list(self) -> any: ...
|
||||
def dict(self) -> any: ...
|
||||
def hex(self, val: int) -> str: ...
|
||||
def ord(self, val: str) -> int: ...
|
||||
def chr(self, val: int) -> str: ...
|
||||
def bytes(self, val: any) -> bytes: ...
|
||||
def cformat(self, fmt: str, *var) -> str: ...
|
||||
def id(self, obj: any) -> int: ...
|
||||
class SysObj:
|
||||
@staticmethod
|
||||
def int(arg: any) -> int: ...
|
||||
|
||||
@staticmethod
|
||||
def bool(arg: any) -> int: ...
|
||||
|
||||
@staticmethod
|
||||
def float(arg: any) -> float: ...
|
||||
|
||||
@staticmethod
|
||||
def str(arg: any) -> str: ...
|
||||
|
||||
@staticmethod
|
||||
def iter(arg: any) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
def range(*ax) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
def print(*val, **ops): ...
|
||||
|
||||
@staticmethod
|
||||
def __setitem__(obj: any, key: any, val: any) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
def __getitem__(obj: any, key: any) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def type(arg: any) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
def len(arg: any) -> int: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||
def list(*val) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||
def dict(*val) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("PIKA_BUILTIN_STRUCT_ENABLE")
|
||||
def tuple(arg: any) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def hex(val: int) -> str: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def ord(val: str) -> int: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def chr(val: int) -> str: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def bytes(val: any) -> bytes: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("PIKA_SYNTAX_FORMAT_ENABLE")
|
||||
def cformat(fmt: str, *var) -> str: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def id(obj: any) -> int: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("PIKA_FILEIO_ENABLE")
|
||||
def open(path: str, mode: str) -> object: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def dir(obj: any) -> list: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("PIKA_EXEC_ENABLE")
|
||||
def exec(code: str): ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("PIKA_EXEC_ENABLE")
|
||||
def eval(code: str) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def getattr(obj: object, name: str) -> any: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def setattr(obj: object, name: str, val: any): ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def hasattr(obj: object, name: str) -> int: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def exit(): ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def input(*info) -> str: ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def help(name: str): ...
|
||||
|
||||
@staticmethod
|
||||
@PIKA_C_MACRO_IF("!PIKA_NANO_ENABLE")
|
||||
def reboot(): ...
|
||||
|
||||
|
||||
class RangeObj(TinyObj):
|
||||
@PIKA_C_MACRO_IF("0")
|
||||
class RangeObj:
|
||||
def __next__(self) -> any: ...
|
||||
|
||||
|
||||
class StringObj(TinyObj):
|
||||
@PIKA_C_MACRO_IF("0")
|
||||
class StringObj:
|
||||
def __next__(self) -> any: ...
|
||||
|
||||
|
||||
class PikaObj(TinyObj):
|
||||
...
|
||||
|
@ -1,5 +1,3 @@
|
||||
#api
|
||||
from PikaObj import *
|
||||
import PikaStdData
|
||||
import PikaStdLib
|
||||
|
||||
|
@ -1,20 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaDebug.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaDebug_DebugerMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaDebug_Debuger(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaDebug(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineConstructor(self, "Debuger()->any", PikaDebug_DebugerMethod);
|
||||
return self;
|
||||
}
|
||||
|
@ -1,14 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaDebug__H
|
||||
#define __PikaDebug__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaDebug(Args *args);
|
||||
|
||||
Arg* PikaDebug_Debuger(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,27 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaDebug_Debuger.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaDebug_Debuger___init__Method(PikaObj *self, Args *args){
|
||||
PikaDebug_Debuger___init__(self);
|
||||
}
|
||||
|
||||
void PikaDebug_Debuger_set_traceMethod(PikaObj *self, Args *args){
|
||||
PikaDebug_Debuger_set_trace(self);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaDebug_Debuger(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "__init__()", PikaDebug_Debuger___init__Method);
|
||||
class_defineMethod(self, "set_trace()", PikaDebug_Debuger_set_traceMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaDebug_Debuger(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaDebug_Debuger);
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaDebug_Debuger__H
|
||||
#define __PikaDebug_Debuger__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaDebug_Debuger(Args *args);
|
||||
|
||||
void PikaDebug_Debuger___init__(PikaObj *self);
|
||||
void PikaDebug_Debuger_set_trace(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,21 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaMain.h"
|
||||
#include "PikaStdLib_SysObj.h"
|
||||
#include "PikaStdData.h"
|
||||
#include "PikaStdLib.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
PikaObj *New_PikaMain(Args *args){
|
||||
PikaObj *self = New_PikaStdLib_SysObj(args);
|
||||
obj_newObj(self, "PikaStdData", "PikaStdData", New_PikaStdData);
|
||||
obj_newObj(self, "PikaStdLib", "PikaStdLib", New_PikaStdLib);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaMain(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaMain);
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaMain__H
|
||||
#define __PikaMain__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaMain(Args *args);
|
||||
|
||||
|
||||
#endif
|
@ -1,50 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdData.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdData_ByteArrayMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_ByteArray(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_DictMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_Dict(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_ListMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_List(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_StringMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_String(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_UtilsMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_Utils(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_dict_keysMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_dict_keys(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdData(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineConstructor(self, "ByteArray()->any", PikaStdData_ByteArrayMethod);
|
||||
class_defineConstructor(self, "Dict()->any", PikaStdData_DictMethod);
|
||||
class_defineConstructor(self, "List()->any", PikaStdData_ListMethod);
|
||||
class_defineConstructor(self, "String()->any", PikaStdData_StringMethod);
|
||||
class_defineConstructor(self, "Utils()->any", PikaStdData_UtilsMethod);
|
||||
class_defineConstructor(self, "dict_keys()->any", PikaStdData_dict_keysMethod);
|
||||
return self;
|
||||
}
|
||||
|
@ -1,19 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdData__H
|
||||
#define __PikaStdData__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdData(Args *args);
|
||||
|
||||
Arg* PikaStdData_ByteArray(PikaObj *self);
|
||||
Arg* PikaStdData_Dict(PikaObj *self);
|
||||
Arg* PikaStdData_List(PikaObj *self);
|
||||
Arg* PikaStdData_String(PikaObj *self);
|
||||
Arg* PikaStdData_Utils(PikaObj *self);
|
||||
Arg* PikaStdData_dict_keys(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,23 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdData_ByteArray.h"
|
||||
#include "PikaStdData_List.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdData_ByteArray_fromStringMethod(PikaObj *self, Args *args){
|
||||
char* s = args_getStr(args, "s");
|
||||
PikaStdData_ByteArray_fromString(self, s);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdData_ByteArray(Args *args){
|
||||
PikaObj *self = New_PikaStdData_List(args);
|
||||
class_defineMethod(self, "fromString(s:str)", PikaStdData_ByteArray_fromStringMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdData_ByteArray(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdData_ByteArray);
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdData_ByteArray__H
|
||||
#define __PikaStdData_ByteArray__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdData_ByteArray(Args *args);
|
||||
|
||||
void PikaStdData_ByteArray_fromString(PikaObj *self, char* s);
|
||||
|
||||
#endif
|
@ -1,79 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdData_Dict.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdData_Dict___del__Method(PikaObj *self, Args *args){
|
||||
PikaStdData_Dict___del__(self);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict___getitem__Method(PikaObj *self, Args *args){
|
||||
Arg* __key = args_getArg(args, "__key");
|
||||
Arg* res = PikaStdData_Dict___getitem__(self, __key);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict___init__Method(PikaObj *self, Args *args){
|
||||
PikaStdData_Dict___init__(self);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict___iter__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_Dict___iter__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict___next__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_Dict___next__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict___setitem__Method(PikaObj *self, Args *args){
|
||||
Arg* __key = args_getArg(args, "__key");
|
||||
Arg* __val = args_getArg(args, "__val");
|
||||
PikaStdData_Dict___setitem__(self, __key, __val);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict_getMethod(PikaObj *self, Args *args){
|
||||
char* key = args_getStr(args, "key");
|
||||
Arg* res = PikaStdData_Dict_get(self, key);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict_keysMethod(PikaObj *self, Args *args){
|
||||
PikaObj* res = PikaStdData_Dict_keys(self);
|
||||
method_returnObj(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict_removeMethod(PikaObj *self, Args *args){
|
||||
char* key = args_getStr(args, "key");
|
||||
PikaStdData_Dict_remove(self, key);
|
||||
}
|
||||
|
||||
void PikaStdData_Dict_setMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
char* key = args_getStr(args, "key");
|
||||
PikaStdData_Dict_set(self, arg, key);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdData_Dict(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "__del__()", PikaStdData_Dict___del__Method);
|
||||
class_defineMethod(self, "__getitem__(__key:any)->any", PikaStdData_Dict___getitem__Method);
|
||||
class_defineMethod(self, "__init__()", PikaStdData_Dict___init__Method);
|
||||
class_defineMethod(self, "__iter__()->any", PikaStdData_Dict___iter__Method);
|
||||
class_defineMethod(self, "__next__()->any", PikaStdData_Dict___next__Method);
|
||||
class_defineMethod(self, "__setitem__(__key:any,__val:any)", PikaStdData_Dict___setitem__Method);
|
||||
class_defineMethod(self, "get(key:str)->any", PikaStdData_Dict_getMethod);
|
||||
class_defineMethod(self, "keys()->dict_keys", PikaStdData_Dict_keysMethod);
|
||||
class_defineMethod(self, "remove(key:str)", PikaStdData_Dict_removeMethod);
|
||||
class_defineMethod(self, "set(key:str,arg:any)", PikaStdData_Dict_setMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdData_Dict(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdData_Dict);
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdData_Dict__H
|
||||
#define __PikaStdData_Dict__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdData_Dict(Args *args);
|
||||
|
||||
void PikaStdData_Dict___del__(PikaObj *self);
|
||||
Arg* PikaStdData_Dict___getitem__(PikaObj *self, Arg* __key);
|
||||
void PikaStdData_Dict___init__(PikaObj *self);
|
||||
Arg* PikaStdData_Dict___iter__(PikaObj *self);
|
||||
Arg* PikaStdData_Dict___next__(PikaObj *self);
|
||||
void PikaStdData_Dict___setitem__(PikaObj *self, Arg* __key, Arg* __val);
|
||||
Arg* PikaStdData_Dict_get(PikaObj *self, char* key);
|
||||
PikaObj* PikaStdData_Dict_keys(PikaObj *self);
|
||||
void PikaStdData_Dict_remove(PikaObj *self, char* key);
|
||||
void PikaStdData_Dict_set(PikaObj *self, Arg* arg, char* key);
|
||||
|
||||
#endif
|
@ -1,79 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdData_List.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdData_List___del__Method(PikaObj *self, Args *args){
|
||||
PikaStdData_List___del__(self);
|
||||
}
|
||||
|
||||
void PikaStdData_List___getitem__Method(PikaObj *self, Args *args){
|
||||
Arg* __key = args_getArg(args, "__key");
|
||||
Arg* res = PikaStdData_List___getitem__(self, __key);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_List___init__Method(PikaObj *self, Args *args){
|
||||
PikaStdData_List___init__(self);
|
||||
}
|
||||
|
||||
void PikaStdData_List___iter__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_List___iter__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_List___next__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_List___next__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_List___setitem__Method(PikaObj *self, Args *args){
|
||||
Arg* __key = args_getArg(args, "__key");
|
||||
Arg* __val = args_getArg(args, "__val");
|
||||
PikaStdData_List___setitem__(self, __key, __val);
|
||||
}
|
||||
|
||||
void PikaStdData_List_appendMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
PikaStdData_List_append(self, arg);
|
||||
}
|
||||
|
||||
void PikaStdData_List_getMethod(PikaObj *self, Args *args){
|
||||
int i = args_getInt(args, "i");
|
||||
Arg* res = PikaStdData_List_get(self, i);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_List_lenMethod(PikaObj *self, Args *args){
|
||||
int res = PikaStdData_List_len(self);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_List_setMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
int i = args_getInt(args, "i");
|
||||
PikaStdData_List_set(self, arg, i);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdData_List(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "__del__()", PikaStdData_List___del__Method);
|
||||
class_defineMethod(self, "__getitem__(__key:any)->any", PikaStdData_List___getitem__Method);
|
||||
class_defineMethod(self, "__init__()", PikaStdData_List___init__Method);
|
||||
class_defineMethod(self, "__iter__()->any", PikaStdData_List___iter__Method);
|
||||
class_defineMethod(self, "__next__()->any", PikaStdData_List___next__Method);
|
||||
class_defineMethod(self, "__setitem__(__key:any,__val:any)", PikaStdData_List___setitem__Method);
|
||||
class_defineMethod(self, "append(arg:any)", PikaStdData_List_appendMethod);
|
||||
class_defineMethod(self, "get(i:int)->any", PikaStdData_List_getMethod);
|
||||
class_defineMethod(self, "len()->int", PikaStdData_List_lenMethod);
|
||||
class_defineMethod(self, "set(i:int,arg:any)", PikaStdData_List_setMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdData_List(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdData_List);
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdData_List__H
|
||||
#define __PikaStdData_List__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdData_List(Args *args);
|
||||
|
||||
void PikaStdData_List___del__(PikaObj *self);
|
||||
Arg* PikaStdData_List___getitem__(PikaObj *self, Arg* __key);
|
||||
void PikaStdData_List___init__(PikaObj *self);
|
||||
Arg* PikaStdData_List___iter__(PikaObj *self);
|
||||
Arg* PikaStdData_List___next__(PikaObj *self);
|
||||
void PikaStdData_List___setitem__(PikaObj *self, Arg* __key, Arg* __val);
|
||||
void PikaStdData_List_append(PikaObj *self, Arg* arg);
|
||||
Arg* PikaStdData_List_get(PikaObj *self, int i);
|
||||
int PikaStdData_List_len(PikaObj *self);
|
||||
void PikaStdData_List_set(PikaObj *self, Arg* arg, int i);
|
||||
|
||||
#endif
|
@ -1,118 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdData_String.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdData_String___getitem__Method(PikaObj *self, Args *args){
|
||||
Arg* __key = args_getArg(args, "__key");
|
||||
Arg* res = PikaStdData_String___getitem__(self, __key);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String___init__Method(PikaObj *self, Args *args){
|
||||
char* s = args_getStr(args, "s");
|
||||
PikaStdData_String___init__(self, s);
|
||||
}
|
||||
|
||||
void PikaStdData_String___iter__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_String___iter__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String___next__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_String___next__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String___setitem__Method(PikaObj *self, Args *args){
|
||||
Arg* __key = args_getArg(args, "__key");
|
||||
Arg* __val = args_getArg(args, "__val");
|
||||
PikaStdData_String___setitem__(self, __key, __val);
|
||||
}
|
||||
|
||||
void PikaStdData_String___str__Method(PikaObj *self, Args *args){
|
||||
char* res = PikaStdData_String___str__(self);
|
||||
method_returnStr(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_endwithMethod(PikaObj *self, Args *args){
|
||||
char* suffix = args_getStr(args, "suffix");
|
||||
int res = PikaStdData_String_endwith(self, suffix);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_getMethod(PikaObj *self, Args *args){
|
||||
char* res = PikaStdData_String_get(self);
|
||||
method_returnStr(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_isalnumMethod(PikaObj *self, Args *args){
|
||||
int res = PikaStdData_String_isalnum(self);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_isalphaMethod(PikaObj *self, Args *args){
|
||||
int res = PikaStdData_String_isalpha(self);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_isdigitMethod(PikaObj *self, Args *args){
|
||||
int res = PikaStdData_String_isdigit(self);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_islowerMethod(PikaObj *self, Args *args){
|
||||
int res = PikaStdData_String_islower(self);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_isspaceMethod(PikaObj *self, Args *args){
|
||||
int res = PikaStdData_String_isspace(self);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_setMethod(PikaObj *self, Args *args){
|
||||
char* s = args_getStr(args, "s");
|
||||
PikaStdData_String_set(self, s);
|
||||
}
|
||||
|
||||
void PikaStdData_String_splitMethod(PikaObj *self, Args *args){
|
||||
char* s = args_getStr(args, "s");
|
||||
PikaObj* res = PikaStdData_String_split(self, s);
|
||||
method_returnObj(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_String_startwithMethod(PikaObj *self, Args *args){
|
||||
char* prefix = args_getStr(args, "prefix");
|
||||
int res = PikaStdData_String_startwith(self, prefix);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdData_String(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "__getitem__(__key:any)->any", PikaStdData_String___getitem__Method);
|
||||
class_defineMethod(self, "__init__(s:str)", PikaStdData_String___init__Method);
|
||||
class_defineMethod(self, "__iter__()->any", PikaStdData_String___iter__Method);
|
||||
class_defineMethod(self, "__next__()->any", PikaStdData_String___next__Method);
|
||||
class_defineMethod(self, "__setitem__(__key:any,__val:any)", PikaStdData_String___setitem__Method);
|
||||
class_defineMethod(self, "__str__()->str", PikaStdData_String___str__Method);
|
||||
class_defineMethod(self, "endwith(suffix:str)->int", PikaStdData_String_endwithMethod);
|
||||
class_defineMethod(self, "get()->str", PikaStdData_String_getMethod);
|
||||
class_defineMethod(self, "isalnum()->int", PikaStdData_String_isalnumMethod);
|
||||
class_defineMethod(self, "isalpha()->int", PikaStdData_String_isalphaMethod);
|
||||
class_defineMethod(self, "isdigit()->int", PikaStdData_String_isdigitMethod);
|
||||
class_defineMethod(self, "islower()->int", PikaStdData_String_islowerMethod);
|
||||
class_defineMethod(self, "isspace()->int", PikaStdData_String_isspaceMethod);
|
||||
class_defineMethod(self, "set(s:str)", PikaStdData_String_setMethod);
|
||||
class_defineMethod(self, "split(s:str)->List", PikaStdData_String_splitMethod);
|
||||
class_defineMethod(self, "startwith(prefix:str)->int", PikaStdData_String_startwithMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdData_String(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdData_String);
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdData_String__H
|
||||
#define __PikaStdData_String__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdData_String(Args *args);
|
||||
|
||||
Arg* PikaStdData_String___getitem__(PikaObj *self, Arg* __key);
|
||||
void PikaStdData_String___init__(PikaObj *self, char* s);
|
||||
Arg* PikaStdData_String___iter__(PikaObj *self);
|
||||
Arg* PikaStdData_String___next__(PikaObj *self);
|
||||
void PikaStdData_String___setitem__(PikaObj *self, Arg* __key, Arg* __val);
|
||||
char* PikaStdData_String___str__(PikaObj *self);
|
||||
int PikaStdData_String_endwith(PikaObj *self, char* suffix);
|
||||
char* PikaStdData_String_get(PikaObj *self);
|
||||
int PikaStdData_String_isalnum(PikaObj *self);
|
||||
int PikaStdData_String_isalpha(PikaObj *self);
|
||||
int PikaStdData_String_isdigit(PikaObj *self);
|
||||
int PikaStdData_String_islower(PikaObj *self);
|
||||
int PikaStdData_String_isspace(PikaObj *self);
|
||||
void PikaStdData_String_set(PikaObj *self, char* s);
|
||||
PikaObj* PikaStdData_String_split(PikaObj *self, char* s);
|
||||
int PikaStdData_String_startwith(PikaObj *self, char* prefix);
|
||||
|
||||
#endif
|
@ -1,24 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdData_Utils.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdData_Utils_int_to_bytesMethod(PikaObj *self, Args *args){
|
||||
int val = args_getInt(args, "val");
|
||||
Arg* res = PikaStdData_Utils_int_to_bytes(self, val);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdData_Utils(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "int_to_bytes(val:int)->bytes", PikaStdData_Utils_int_to_bytesMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdData_Utils(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdData_Utils);
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdData_Utils__H
|
||||
#define __PikaStdData_Utils__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdData_Utils(Args *args);
|
||||
|
||||
Arg* PikaStdData_Utils_int_to_bytes(PikaObj *self, int val);
|
||||
|
||||
#endif
|
@ -1,29 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdData_dict_keys.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdData_dict_keys___iter__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_dict_keys___iter__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdData_dict_keys___next__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdData_dict_keys___next__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdData_dict_keys(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "__iter__()->any", PikaStdData_dict_keys___iter__Method);
|
||||
class_defineMethod(self, "__next__()->any", PikaStdData_dict_keys___next__Method);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdData_dict_keys(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdData_dict_keys);
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdData_dict_keys__H
|
||||
#define __PikaStdData_dict_keys__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdData_dict_keys(Args *args);
|
||||
|
||||
Arg* PikaStdData_dict_keys___iter__(PikaObj *self);
|
||||
Arg* PikaStdData_dict_keys___next__(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,44 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdLib.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdLib_MemCheckerMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_MemChecker(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_PikaObjMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_PikaObj(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_RangeObjMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_RangeObj(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_StringObjMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_StringObj(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObjMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_SysObj(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdLib(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineConstructor(self, "MemChecker()->any", PikaStdLib_MemCheckerMethod);
|
||||
class_defineConstructor(self, "PikaObj()->any", PikaStdLib_PikaObjMethod);
|
||||
class_defineConstructor(self, "RangeObj()->any", PikaStdLib_RangeObjMethod);
|
||||
class_defineConstructor(self, "StringObj()->any", PikaStdLib_StringObjMethod);
|
||||
class_defineConstructor(self, "SysObj()->any", PikaStdLib_SysObjMethod);
|
||||
return self;
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdLib__H
|
||||
#define __PikaStdLib__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdLib(Args *args);
|
||||
|
||||
Arg* PikaStdLib_MemChecker(PikaObj *self);
|
||||
Arg* PikaStdLib_PikaObj(PikaObj *self);
|
||||
Arg* PikaStdLib_RangeObj(PikaObj *self);
|
||||
Arg* PikaStdLib_StringObj(PikaObj *self);
|
||||
Arg* PikaStdLib_SysObj(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,44 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdLib_MemChecker.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdLib_MemChecker_getMaxMethod(PikaObj *self, Args *args){
|
||||
double res = PikaStdLib_MemChecker_getMax(self);
|
||||
method_returnFloat(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_getNowMethod(PikaObj *self, Args *args){
|
||||
double res = PikaStdLib_MemChecker_getNow(self);
|
||||
method_returnFloat(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_maxMethod(PikaObj *self, Args *args){
|
||||
PikaStdLib_MemChecker_max(self);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_nowMethod(PikaObj *self, Args *args){
|
||||
PikaStdLib_MemChecker_now(self);
|
||||
}
|
||||
|
||||
void PikaStdLib_MemChecker_resetMaxMethod(PikaObj *self, Args *args){
|
||||
PikaStdLib_MemChecker_resetMax(self);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdLib_MemChecker(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "getMax()->float", PikaStdLib_MemChecker_getMaxMethod);
|
||||
class_defineMethod(self, "getNow()->float", PikaStdLib_MemChecker_getNowMethod);
|
||||
class_defineMethod(self, "max()", PikaStdLib_MemChecker_maxMethod);
|
||||
class_defineMethod(self, "now()", PikaStdLib_MemChecker_nowMethod);
|
||||
class_defineMethod(self, "resetMax()", PikaStdLib_MemChecker_resetMaxMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdLib_MemChecker(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdLib_MemChecker);
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdLib_MemChecker__H
|
||||
#define __PikaStdLib_MemChecker__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdLib_MemChecker(Args *args);
|
||||
|
||||
double PikaStdLib_MemChecker_getMax(PikaObj *self);
|
||||
double PikaStdLib_MemChecker_getNow(PikaObj *self);
|
||||
void PikaStdLib_MemChecker_max(PikaObj *self);
|
||||
void PikaStdLib_MemChecker_now(PikaObj *self);
|
||||
void PikaStdLib_MemChecker_resetMax(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,17 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdLib_PikaObj.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
PikaObj *New_PikaStdLib_PikaObj(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdLib_PikaObj(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdLib_PikaObj);
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdLib_PikaObj__H
|
||||
#define __PikaStdLib_PikaObj__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdLib_PikaObj(Args *args);
|
||||
|
||||
|
||||
#endif
|
@ -1,23 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdLib_RangeObj.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdLib_RangeObj___next__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_RangeObj___next__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdLib_RangeObj(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "__next__()->any", PikaStdLib_RangeObj___next__Method);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdLib_RangeObj(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdLib_RangeObj);
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdLib_RangeObj__H
|
||||
#define __PikaStdLib_RangeObj__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdLib_RangeObj(Args *args);
|
||||
|
||||
Arg* PikaStdLib_RangeObj___next__(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,23 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdLib_StringObj.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdLib_StringObj___next__Method(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_StringObj___next__(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdLib_StringObj(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineMethod(self, "__next__()->any", PikaStdLib_StringObj___next__Method);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdLib_StringObj(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdLib_StringObj);
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdLib_StringObj__H
|
||||
#define __PikaStdLib_StringObj__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdLib_StringObj(Args *args);
|
||||
|
||||
Arg* PikaStdLib_StringObj___next__(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,166 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdLib_SysObj.h"
|
||||
#include "BaseObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdLib_SysObj___getitem__Method(PikaObj *self, Args *args){
|
||||
Arg* key = args_getArg(args, "key");
|
||||
Arg* obj = args_getArg(args, "obj");
|
||||
Arg* res = PikaStdLib_SysObj___getitem__(self, key, obj);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj___setitem__Method(PikaObj *self, Args *args){
|
||||
Arg* key = args_getArg(args, "key");
|
||||
Arg* obj = args_getArg(args, "obj");
|
||||
char* obj_str = args_getStr(args, "obj_str");
|
||||
Arg* val = args_getArg(args, "val");
|
||||
PikaStdLib_SysObj___setitem__(self, key, obj, obj_str, val);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj___slice__Method(PikaObj *self, Args *args){
|
||||
Arg* end = args_getArg(args, "end");
|
||||
Arg* obj = args_getArg(args, "obj");
|
||||
Arg* start = args_getArg(args, "start");
|
||||
int step = args_getInt(args, "step");
|
||||
Arg* res = PikaStdLib_SysObj___slice__(self, end, obj, start, step);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_bytesMethod(PikaObj *self, Args *args){
|
||||
Arg* val = args_getArg(args, "val");
|
||||
Arg* res = PikaStdLib_SysObj_bytes(self, val);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_cformatMethod(PikaObj *self, Args *args){
|
||||
char* fmt = args_getStr(args, "fmt");
|
||||
PikaTuple* var = args_getPtr(args, "var");
|
||||
char* res = PikaStdLib_SysObj_cformat(self, fmt, var);
|
||||
method_returnStr(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_chrMethod(PikaObj *self, Args *args){
|
||||
int val = args_getInt(args, "val");
|
||||
char* res = PikaStdLib_SysObj_chr(self, val);
|
||||
method_returnStr(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_dictMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_SysObj_dict(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_floatMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
double res = PikaStdLib_SysObj_float(self, arg);
|
||||
method_returnFloat(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_hexMethod(PikaObj *self, Args *args){
|
||||
int val = args_getInt(args, "val");
|
||||
char* res = PikaStdLib_SysObj_hex(self, val);
|
||||
method_returnStr(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_idMethod(PikaObj *self, Args *args){
|
||||
Arg* obj = args_getArg(args, "obj");
|
||||
int res = PikaStdLib_SysObj_id(self, obj);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_intMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
int res = PikaStdLib_SysObj_int(self, arg);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_iterMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
Arg* res = PikaStdLib_SysObj_iter(self, arg);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_lenMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
int res = PikaStdLib_SysObj_len(self, arg);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_listMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdLib_SysObj_list(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_ordMethod(PikaObj *self, Args *args){
|
||||
char* val = args_getStr(args, "val");
|
||||
int res = PikaStdLib_SysObj_ord(self, val);
|
||||
method_returnInt(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_printMethod(PikaObj *self, Args *args){
|
||||
PikaTuple* val = args_getPtr(args, "val");
|
||||
PikaStdLib_SysObj_print(self, val);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_printNoEndMethod(PikaObj *self, Args *args){
|
||||
Arg* val = args_getArg(args, "val");
|
||||
PikaStdLib_SysObj_printNoEnd(self, val);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_rangeMethod(PikaObj *self, Args *args){
|
||||
int a1 = args_getInt(args, "a1");
|
||||
int a2 = args_getInt(args, "a2");
|
||||
Arg* res = PikaStdLib_SysObj_range(self, a1, a2);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_removeMethod(PikaObj *self, Args *args){
|
||||
char* argPath = args_getStr(args, "argPath");
|
||||
PikaStdLib_SysObj_remove(self, argPath);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_strMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
char* res = PikaStdLib_SysObj_str(self, arg);
|
||||
method_returnStr(args, res);
|
||||
}
|
||||
|
||||
void PikaStdLib_SysObj_typeMethod(PikaObj *self, Args *args){
|
||||
Arg* arg = args_getArg(args, "arg");
|
||||
PikaStdLib_SysObj_type(self, arg);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdLib_SysObj(Args *args){
|
||||
PikaObj *self = New_BaseObj(args);
|
||||
class_defineMethod(self, "__getitem__(obj:any,key:any)->any", PikaStdLib_SysObj___getitem__Method);
|
||||
class_defineMethod(self, "__setitem__(obj:any,key:any,val:any,obj_str:str)", PikaStdLib_SysObj___setitem__Method);
|
||||
class_defineMethod(self, "__slice__(obj:any,start:any,end:any,step:int)->any", PikaStdLib_SysObj___slice__Method);
|
||||
class_defineMethod(self, "bytes(val:any)->bytes", PikaStdLib_SysObj_bytesMethod);
|
||||
class_defineMethod(self, "cformat(fmt:str,*var)->str", PikaStdLib_SysObj_cformatMethod);
|
||||
class_defineMethod(self, "chr(val:int)->str", PikaStdLib_SysObj_chrMethod);
|
||||
class_defineMethod(self, "dict()->any", PikaStdLib_SysObj_dictMethod);
|
||||
class_defineMethod(self, "float(arg:any)->float", PikaStdLib_SysObj_floatMethod);
|
||||
class_defineMethod(self, "hex(val:int)->str", PikaStdLib_SysObj_hexMethod);
|
||||
class_defineMethod(self, "id(obj:any)->int", PikaStdLib_SysObj_idMethod);
|
||||
class_defineMethod(self, "int(arg:any)->int", PikaStdLib_SysObj_intMethod);
|
||||
class_defineMethod(self, "iter(arg:any)->any", PikaStdLib_SysObj_iterMethod);
|
||||
class_defineMethod(self, "len(arg:any)->int", PikaStdLib_SysObj_lenMethod);
|
||||
class_defineMethod(self, "list()->any", PikaStdLib_SysObj_listMethod);
|
||||
class_defineMethod(self, "ord(val:str)->int", PikaStdLib_SysObj_ordMethod);
|
||||
class_defineMethod(self, "print(*val)", PikaStdLib_SysObj_printMethod);
|
||||
class_defineMethod(self, "printNoEnd(val:any)", PikaStdLib_SysObj_printNoEndMethod);
|
||||
class_defineMethod(self, "range(a1:int,a2:int)->any", PikaStdLib_SysObj_rangeMethod);
|
||||
class_defineMethod(self, "remove(argPath:str)", PikaStdLib_SysObj_removeMethod);
|
||||
class_defineMethod(self, "str(arg:any)->str", PikaStdLib_SysObj_strMethod);
|
||||
class_defineMethod(self, "type(arg:any)", PikaStdLib_SysObj_typeMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdLib_SysObj(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdLib_SysObj);
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdLib_SysObj__H
|
||||
#define __PikaStdLib_SysObj__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdLib_SysObj(Args *args);
|
||||
|
||||
Arg* PikaStdLib_SysObj___getitem__(PikaObj *self, Arg* key, Arg* obj);
|
||||
void PikaStdLib_SysObj___setitem__(PikaObj *self, Arg* key, Arg* obj, char* obj_str, Arg* val);
|
||||
Arg* PikaStdLib_SysObj___slice__(PikaObj *self, Arg* end, Arg* obj, Arg* start, int step);
|
||||
Arg* PikaStdLib_SysObj_bytes(PikaObj *self, Arg* val);
|
||||
char* PikaStdLib_SysObj_cformat(PikaObj *self, char* fmt, PikaTuple* var);
|
||||
char* PikaStdLib_SysObj_chr(PikaObj *self, int val);
|
||||
Arg* PikaStdLib_SysObj_dict(PikaObj *self);
|
||||
double PikaStdLib_SysObj_float(PikaObj *self, Arg* arg);
|
||||
char* PikaStdLib_SysObj_hex(PikaObj *self, int val);
|
||||
int PikaStdLib_SysObj_id(PikaObj *self, Arg* obj);
|
||||
int PikaStdLib_SysObj_int(PikaObj *self, Arg* arg);
|
||||
Arg* PikaStdLib_SysObj_iter(PikaObj *self, Arg* arg);
|
||||
int PikaStdLib_SysObj_len(PikaObj *self, Arg* arg);
|
||||
Arg* PikaStdLib_SysObj_list(PikaObj *self);
|
||||
int PikaStdLib_SysObj_ord(PikaObj *self, char* val);
|
||||
void PikaStdLib_SysObj_print(PikaObj *self, PikaTuple* val);
|
||||
void PikaStdLib_SysObj_printNoEnd(PikaObj *self, Arg* val);
|
||||
Arg* PikaStdLib_SysObj_range(PikaObj *self, int a1, int a2);
|
||||
void PikaStdLib_SysObj_remove(PikaObj *self, char* argPath);
|
||||
char* PikaStdLib_SysObj_str(PikaObj *self, Arg* arg);
|
||||
void PikaStdLib_SysObj_type(PikaObj *self, Arg* arg);
|
||||
|
||||
#endif
|
@ -1,20 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdTask.h"
|
||||
#include "TinyObj.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdTask_TaskMethod(PikaObj *self, Args *args){
|
||||
Arg* res = PikaStdTask_Task(self);
|
||||
method_returnArg(args, res);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdTask(Args *args){
|
||||
PikaObj *self = New_TinyObj(args);
|
||||
class_defineConstructor(self, "Task()->any", PikaStdTask_TaskMethod);
|
||||
return self;
|
||||
}
|
||||
|
@ -1,14 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdTask__H
|
||||
#define __PikaStdTask__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdTask(Args *args);
|
||||
|
||||
Arg* PikaStdTask_Task(PikaObj *self);
|
||||
|
||||
#endif
|
@ -1,65 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaStdTask_Task.h"
|
||||
#include "PikaStdLib_SysObj.h"
|
||||
#include "PikaStdData_List.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "BaseObj.h"
|
||||
|
||||
void PikaStdTask_Task___init__Method(PikaObj *self, Args *args){
|
||||
PikaStdTask_Task___init__(self);
|
||||
}
|
||||
|
||||
void PikaStdTask_Task_call_alwaysMethod(PikaObj *self, Args *args){
|
||||
Arg* fun_todo = args_getArg(args, "fun_todo");
|
||||
PikaStdTask_Task_call_always(self, fun_todo);
|
||||
}
|
||||
|
||||
void PikaStdTask_Task_call_period_msMethod(PikaObj *self, Args *args){
|
||||
Arg* fun_todo = args_getArg(args, "fun_todo");
|
||||
int period_ms = args_getInt(args, "period_ms");
|
||||
PikaStdTask_Task_call_period_ms(self, fun_todo, period_ms);
|
||||
}
|
||||
|
||||
void PikaStdTask_Task_call_whenMethod(PikaObj *self, Args *args){
|
||||
Arg* fun_todo = args_getArg(args, "fun_todo");
|
||||
Arg* fun_when = args_getArg(args, "fun_when");
|
||||
PikaStdTask_Task_call_when(self, fun_todo, fun_when);
|
||||
}
|
||||
|
||||
void PikaStdTask_Task_platformGetTickMethod(PikaObj *self, Args *args){
|
||||
PikaStdTask_Task_platformGetTick(self);
|
||||
}
|
||||
|
||||
void PikaStdTask_Task_run_foreverMethod(PikaObj *self, Args *args){
|
||||
PikaStdTask_Task_run_forever(self);
|
||||
}
|
||||
|
||||
void PikaStdTask_Task_run_onceMethod(PikaObj *self, Args *args){
|
||||
PikaStdTask_Task_run_once(self);
|
||||
}
|
||||
|
||||
void PikaStdTask_Task_run_until_msMethod(PikaObj *self, Args *args){
|
||||
int until_ms = args_getInt(args, "until_ms");
|
||||
PikaStdTask_Task_run_until_ms(self, until_ms);
|
||||
}
|
||||
|
||||
PikaObj *New_PikaStdTask_Task(Args *args){
|
||||
PikaObj *self = New_PikaStdLib_SysObj(args);
|
||||
obj_newObj(self, "calls", "PikaStdData_List", New_PikaStdData_List);
|
||||
class_defineMethod(self, "__init__()", PikaStdTask_Task___init__Method);
|
||||
class_defineMethod(self, "call_always(fun_todo:any)", PikaStdTask_Task_call_alwaysMethod);
|
||||
class_defineMethod(self, "call_period_ms(fun_todo:any,period_ms:int)", PikaStdTask_Task_call_period_msMethod);
|
||||
class_defineMethod(self, "call_when(fun_todo:any,fun_when:any)", PikaStdTask_Task_call_whenMethod);
|
||||
class_defineMethod(self, "platformGetTick()", PikaStdTask_Task_platformGetTickMethod);
|
||||
class_defineMethod(self, "run_forever()", PikaStdTask_Task_run_foreverMethod);
|
||||
class_defineMethod(self, "run_once()", PikaStdTask_Task_run_onceMethod);
|
||||
class_defineMethod(self, "run_until_ms(until_ms:int)", PikaStdTask_Task_run_until_msMethod);
|
||||
return self;
|
||||
}
|
||||
|
||||
Arg *PikaStdTask_Task(PikaObj *self){
|
||||
return obj_newObjInPackage(New_PikaStdTask_Task);
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __PikaStdTask_Task__H
|
||||
#define __PikaStdTask_Task__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
|
||||
PikaObj *New_PikaStdTask_Task(Args *args);
|
||||
|
||||
void PikaStdTask_Task___init__(PikaObj *self);
|
||||
void PikaStdTask_Task_call_always(PikaObj *self, Arg* fun_todo);
|
||||
void PikaStdTask_Task_call_period_ms(PikaObj *self, Arg* fun_todo, int period_ms);
|
||||
void PikaStdTask_Task_call_when(PikaObj *self, Arg* fun_todo, Arg* fun_when);
|
||||
void PikaStdTask_Task_platformGetTick(PikaObj *self);
|
||||
void PikaStdTask_Task_run_forever(PikaObj *self);
|
||||
void PikaStdTask_Task_run_once(PikaObj *self);
|
||||
void PikaStdTask_Task_run_until_ms(PikaObj *self, int until_ms);
|
||||
|
||||
#endif
|
@ -1,154 +0,0 @@
|
||||
#include "PikaPlatform.h"
|
||||
/* warning: auto generated file, please do not modify */
|
||||
PIKA_BYTECODE_ALIGN const unsigned char pikaModules_py_a[] = {
|
||||
0x7f, 0x70, 0x79, 0x61, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x61, 0x69, 0x6e,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xc4, 0x06, 0x00, 0x00, 0x3c, 0x04, 0x00, 0x96, 0x01, 0x00, 0x00, 0x96,
|
||||
0x0c, 0x00, 0x00, 0x82, 0x18, 0x00, 0x00, 0x04, 0x2e, 0x00, 0x00, 0x82,
|
||||
0x32, 0x00, 0x00, 0x89, 0x3f, 0x00, 0x00, 0x06, 0x63, 0x00, 0x11, 0x83,
|
||||
0x65, 0x00, 0x01, 0x02, 0x74, 0x00, 0x11, 0x81, 0x7a, 0x00, 0x01, 0x02,
|
||||
0x74, 0x00, 0x11, 0x81, 0x84, 0x00, 0x11, 0x01, 0x8a, 0x00, 0x01, 0x08,
|
||||
0x93, 0x00, 0x01, 0x07, 0x63, 0x00, 0x12, 0x83, 0x96, 0x00, 0x02, 0x02,
|
||||
0x74, 0x00, 0x12, 0x81, 0x7a, 0x00, 0x02, 0x02, 0x74, 0x00, 0x12, 0x83,
|
||||
0x9e, 0x00, 0x02, 0x02, 0x74, 0x00, 0x12, 0x81, 0x8a, 0x00, 0x02, 0x02,
|
||||
0x74, 0x00, 0x12, 0x83, 0xaf, 0x00, 0x02, 0x02, 0x74, 0x00, 0x12, 0x81,
|
||||
0x84, 0x00, 0x02, 0x02, 0x74, 0x00, 0x02, 0x81, 0xbd, 0x00, 0x02, 0x07,
|
||||
0xc2, 0x00, 0x03, 0x85, 0x63, 0x00, 0x03, 0x04, 0xc4, 0x00, 0x02, 0x86,
|
||||
0xcf, 0x00, 0x01, 0x8b, 0x63, 0x00, 0x12, 0x83, 0xd2, 0x00, 0x02, 0x02,
|
||||
0x74, 0x00, 0x01, 0x8a, 0x00, 0x00, 0x00, 0x85, 0xda, 0x00, 0x00, 0x04,
|
||||
0xdc, 0x00, 0x20, 0x85, 0xda, 0x00, 0x20, 0x05, 0xde, 0x00, 0x10, 0x02,
|
||||
0xe1, 0x00, 0x00, 0x02, 0xe7, 0x00, 0x00, 0x04, 0xec, 0x00, 0x00, 0x82,
|
||||
0xf0, 0x00, 0x00, 0x04, 0xfd, 0x00, 0x00, 0x0d, 0xfd, 0x00, 0x00, 0x07,
|
||||
0xc2, 0x00, 0x11, 0x81, 0xfd, 0x00, 0x11, 0x05, 0xff, 0x00, 0x01, 0x08,
|
||||
0x01, 0x01, 0x01, 0x07, 0x63, 0x00, 0x02, 0x8f, 0x00, 0x00, 0x11, 0x81,
|
||||
0xdc, 0x00, 0x11, 0x01, 0xfd, 0x00, 0x01, 0x08, 0x04, 0x01, 0x01, 0x04,
|
||||
0xdc, 0x00, 0x00, 0x86, 0xcf, 0x00, 0x00, 0x8c, 0xec, 0x00, 0x10, 0x83,
|
||||
0x06, 0x01, 0x10, 0x01, 0xdc, 0x00, 0x10, 0x05, 0x16, 0x01, 0x00, 0x02,
|
||||
0x19, 0x01, 0x00, 0x85, 0xda, 0x00, 0x00, 0x04, 0xdc, 0x00, 0x20, 0x85,
|
||||
0xda, 0x00, 0x20, 0x05, 0xde, 0x00, 0x10, 0x02, 0xe1, 0x00, 0x00, 0x02,
|
||||
0xe7, 0x00, 0x00, 0x04, 0xec, 0x00, 0x00, 0x82, 0xf0, 0x00, 0x00, 0x04,
|
||||
0xfd, 0x00, 0x00, 0x0d, 0xfd, 0x00, 0x00, 0x07, 0xc2, 0x00, 0x11, 0x81,
|
||||
0xfd, 0x00, 0x11, 0x05, 0xff, 0x00, 0x01, 0x08, 0x01, 0x01, 0x01, 0x07,
|
||||
0x63, 0x00, 0x02, 0x8e, 0x00, 0x00, 0x11, 0x81, 0xdc, 0x00, 0x11, 0x01,
|
||||
0xfd, 0x00, 0x01, 0x08, 0x04, 0x01, 0x01, 0x04, 0xdc, 0x00, 0x00, 0x86,
|
||||
0xcf, 0x00, 0x00, 0x8c, 0xec, 0x00, 0x10, 0x83, 0x23, 0x01, 0x10, 0x01,
|
||||
0xdc, 0x00, 0x10, 0x05, 0xde, 0x00, 0x00, 0x02, 0x19, 0x01, 0x00, 0x85,
|
||||
0xda, 0x00, 0x00, 0x04, 0xdc, 0x00, 0x20, 0x85, 0xda, 0x00, 0x20, 0x05,
|
||||
0xde, 0x00, 0x10, 0x02, 0xe1, 0x00, 0x00, 0x02, 0xe7, 0x00, 0x00, 0x04,
|
||||
0xec, 0x00, 0x00, 0x82, 0xf0, 0x00, 0x00, 0x04, 0xfd, 0x00, 0x00, 0x0d,
|
||||
0xfd, 0x00, 0x00, 0x07, 0xc2, 0x00, 0x21, 0x85, 0xda, 0x00, 0x21, 0x05,
|
||||
0x30, 0x01, 0x11, 0x02, 0xe1, 0x00, 0x01, 0x02, 0xe7, 0x00, 0x01, 0x04,
|
||||
0x32, 0x01, 0x01, 0x82, 0x36, 0x01, 0x01, 0x04, 0x43, 0x01, 0x01, 0x0d,
|
||||
0x43, 0x01, 0x01, 0x07, 0xc2, 0x00, 0x12, 0x81, 0xdc, 0x00, 0x12, 0x01,
|
||||
0x43, 0x01, 0x02, 0x08, 0x04, 0x01, 0x02, 0x04, 0xdc, 0x00, 0x01, 0x86,
|
||||
0xcf, 0x00, 0x01, 0x8c, 0x32, 0x01, 0x00, 0x86, 0xcf, 0x00, 0x00, 0x8c,
|
||||
0xec, 0x00, 0x10, 0x83, 0x45, 0x01, 0x10, 0x01, 0xdc, 0x00, 0x10, 0x05,
|
||||
0x56, 0x01, 0x00, 0x02, 0x19, 0x01, 0x00, 0x85, 0xda, 0x00, 0x00, 0x04,
|
||||
0xdc, 0x00, 0x20, 0x85, 0xda, 0x00, 0x20, 0x05, 0xde, 0x00, 0x10, 0x02,
|
||||
0xe1, 0x00, 0x00, 0x02, 0xe7, 0x00, 0x00, 0x04, 0xec, 0x00, 0x00, 0x82,
|
||||
0xf0, 0x00, 0x00, 0x04, 0xfd, 0x00, 0x00, 0x0d, 0xfd, 0x00, 0x00, 0x07,
|
||||
0xc2, 0x00, 0x11, 0x81, 0xdc, 0x00, 0x11, 0x01, 0xfd, 0x00, 0x01, 0x08,
|
||||
0x04, 0x01, 0x01, 0x04, 0xdc, 0x00, 0x00, 0x86, 0xcf, 0x00, 0x00, 0x8c,
|
||||
0xec, 0x00, 0x10, 0x83, 0x59, 0x01, 0x10, 0x01, 0xdc, 0x00, 0x10, 0x05,
|
||||
0x66, 0x01, 0x00, 0x02, 0x19, 0x01, 0x00, 0x82, 0x69, 0x01, 0x00, 0x04,
|
||||
0x7a, 0x01, 0x10, 0x85, 0x7f, 0x01, 0x00, 0x02, 0x81, 0x01, 0x10, 0x83,
|
||||
0x8d, 0x01, 0x00, 0x02, 0x81, 0x01, 0x00, 0x82, 0x91, 0x01, 0x00, 0x04,
|
||||
0x9a, 0x01, 0x10, 0x81, 0x7a, 0x01, 0x00, 0x02, 0xe7, 0x00, 0x00, 0x04,
|
||||
0xec, 0x00, 0x00, 0x82, 0xf0, 0x00, 0x00, 0x04, 0x9e, 0x01, 0x00, 0x0d,
|
||||
0x9e, 0x01, 0x00, 0x07, 0xc2, 0x00, 0x01, 0x81, 0x9e, 0x01, 0x01, 0x04,
|
||||
0xdc, 0x00, 0x00, 0x86, 0xcf, 0x00, 0x00, 0x8c, 0xec, 0x00, 0x10, 0x83,
|
||||
0xa3, 0x01, 0x10, 0x01, 0xdc, 0x00, 0x10, 0x03, 0x8d, 0x01, 0x00, 0x02,
|
||||
0x19, 0x01, 0x00, 0x82, 0x69, 0x01, 0x00, 0x04, 0x7a, 0x01, 0x10, 0x85,
|
||||
0x7f, 0x01, 0x00, 0x02, 0x81, 0x01, 0x10, 0x83, 0x8d, 0x01, 0x00, 0x02,
|
||||
0x81, 0x01, 0x00, 0x82, 0x91, 0x01, 0x00, 0x04, 0x9a, 0x01, 0x10, 0x85,
|
||||
0xda, 0x00, 0x00, 0x02, 0xb1, 0x01, 0x00, 0x04, 0xba, 0x01, 0x10, 0x85,
|
||||
0x63, 0x00, 0x00, 0x02, 0xb1, 0x01, 0x00, 0x04, 0xbd, 0x01, 0x10, 0x81,
|
||||
0x7a, 0x01, 0x00, 0x02, 0xe7, 0x00, 0x00, 0x04, 0xc0, 0x01, 0x10, 0x83,
|
||||
0xe7, 0x00, 0x10, 0x01, 0xc0, 0x01, 0x10, 0x01, 0x7a, 0x01, 0x00, 0x02,
|
||||
0x19, 0x01, 0x00, 0x82, 0xc4, 0x01, 0x00, 0x04, 0xd5, 0x01, 0x10, 0x83,
|
||||
0xdc, 0x00, 0x10, 0x05, 0x63, 0x00, 0x00, 0x02, 0xda, 0x01, 0x10, 0x83,
|
||||
0xe3, 0x01, 0x10, 0x05, 0xc2, 0x00, 0x00, 0x02, 0xda, 0x01, 0x10, 0x83,
|
||||
0xe3, 0x01, 0x00, 0x02, 0xe5, 0x01, 0x10, 0x83, 0xdc, 0x00, 0x00, 0x02,
|
||||
0xf1, 0x01, 0x00, 0x04, 0xdc, 0x00, 0x10, 0x83, 0xe3, 0x01, 0x00, 0x02,
|
||||
0xf1, 0x01, 0x00, 0x04, 0xe3, 0x01, 0x10, 0x83, 0x0c, 0x00, 0x10, 0x01,
|
||||
0xdc, 0x00, 0x10, 0x05, 0x63, 0x00, 0x00, 0x02, 0x19, 0x01, 0x10, 0x83,
|
||||
0xfa, 0x01, 0x10, 0x01, 0xe3, 0x01, 0x10, 0x05, 0xda, 0x00, 0x00, 0x02,
|
||||
0x19, 0x01, 0x00, 0x85, 0xda, 0x00, 0x00, 0x04, 0x08, 0x02, 0x00, 0x85,
|
||||
0xc2, 0x00, 0x00, 0x04, 0xfd, 0x00, 0x20, 0x85, 0xc2, 0x00, 0x20, 0x05,
|
||||
0x56, 0x01, 0x10, 0x02, 0xe1, 0x00, 0x00, 0x02, 0xe7, 0x00, 0x00, 0x04,
|
||||
0xec, 0x00, 0x00, 0x82, 0xf0, 0x00, 0x00, 0x04, 0xfd, 0x00, 0x00, 0x0d,
|
||||
0xfd, 0x00, 0x00, 0x07, 0xc2, 0x00, 0x01, 0x85, 0xc2, 0x00, 0x01, 0x04,
|
||||
0x0c, 0x02, 0x01, 0x85, 0x63, 0x00, 0x01, 0x04, 0x0e, 0x02, 0x21, 0x85,
|
||||
0xc2, 0x00, 0x21, 0x01, 0xfd, 0x00, 0x11, 0x02, 0xe1, 0x00, 0x01, 0x02,
|
||||
0xe7, 0x00, 0x01, 0x04, 0x32, 0x01, 0x01, 0x82, 0x36, 0x01, 0x01, 0x04,
|
||||
0x0c, 0x02, 0x01, 0x0d, 0x0c, 0x02, 0x01, 0x07, 0xc2, 0x00, 0x22, 0x81,
|
||||
0xfd, 0x00, 0x22, 0x01, 0x0c, 0x02, 0x12, 0x08, 0x17, 0x02, 0x12, 0x05,
|
||||
0xda, 0x00, 0x02, 0x08, 0x01, 0x01, 0x02, 0x07, 0x63, 0x00, 0x03, 0x85,
|
||||
0xda, 0x00, 0x03, 0x04, 0x0e, 0x02, 0x03, 0x8e, 0x00, 0x00, 0x01, 0x86,
|
||||
0xcf, 0x00, 0x01, 0x8c, 0x32, 0x01, 0x01, 0x81, 0x0e, 0x02, 0x01, 0x07,
|
||||
0x63, 0x00, 0x12, 0x81, 0x08, 0x02, 0x12, 0x01, 0xfd, 0x00, 0x02, 0x08,
|
||||
0x04, 0x01, 0x02, 0x04, 0x08, 0x02, 0x00, 0x86, 0xcf, 0x00, 0x00, 0x8c,
|
||||
0xec, 0x00, 0x10, 0x83, 0x19, 0x02, 0x10, 0x01, 0x08, 0x02, 0x10, 0x05,
|
||||
0x29, 0x02, 0x00, 0x02, 0x19, 0x01, 0x10, 0x83, 0x2d, 0x02, 0x00, 0x02,
|
||||
0x74, 0x00, 0x10, 0x83, 0x42, 0x02, 0x00, 0x02, 0x74, 0x00, 0x10, 0x83,
|
||||
0x2d, 0x02, 0x00, 0x02, 0x74, 0x00, 0x10, 0x83, 0x57, 0x02, 0x00, 0x02,
|
||||
0x74, 0x00, 0x00, 0x82, 0x65, 0x02, 0x10, 0x83, 0x6d, 0x02, 0x00, 0x02,
|
||||
0x74, 0x00, 0x10, 0x83, 0x7a, 0x02, 0x00, 0x02, 0x74, 0x00, 0x82, 0x02,
|
||||
0x00, 0x50, 0x69, 0x6b, 0x61, 0x53, 0x74, 0x64, 0x4c, 0x69, 0x62, 0x00,
|
||||
0x50, 0x69, 0x6b, 0x61, 0x53, 0x74, 0x64, 0x44, 0x61, 0x74, 0x61, 0x00,
|
||||
0x50, 0x69, 0x6b, 0x61, 0x53, 0x74, 0x64, 0x4c, 0x69, 0x62, 0x2e, 0x4d,
|
||||
0x65, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x72, 0x00, 0x6d, 0x65,
|
||||
0x6d, 0x00, 0x6d, 0x65, 0x6d, 0x2e, 0x72, 0x65, 0x73, 0x65, 0x74, 0x4d,
|
||||
0x61, 0x78, 0x00, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x5f, 0x45, 0x51,
|
||||
0x28, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x69,
|
||||
0x6e, 0x70, 0x75, 0x74, 0x2c, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65,
|
||||
0x64, 0x29, 0x00, 0x31, 0x00, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x54, 0x45,
|
||||
0x53, 0x54, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x00, 0x70, 0x72, 0x69, 0x6e,
|
||||
0x74, 0x00, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x00,
|
||||
0x69, 0x6e, 0x70, 0x75, 0x74, 0x00, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74,
|
||||
0x65, 0x64, 0x00, 0x21, 0x3d, 0x00, 0x5b, 0x45, 0x72, 0x72, 0x6f, 0x72,
|
||||
0x5d, 0x00, 0x5b, 0x69, 0x6e, 0x66, 0x6f, 0x5d, 0x20, 0x45, 0x78, 0x70,
|
||||
0x65, 0x63, 0x74, 0x65, 0x64, 0x3a, 0x00, 0x5b, 0x69, 0x6e, 0x66, 0x6f,
|
||||
0x5d, 0x20, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x3a, 0x00, 0x54, 0x72, 0x75,
|
||||
0x65, 0x00, 0x32, 0x00, 0x69, 0x73, 0x5f, 0x65, 0x72, 0x72, 0x20, 0x6f,
|
||||
0x72, 0x20, 0x00, 0x2d, 0x31, 0x00, 0x5b, 0x20, 0x4f, 0x4b, 0x20, 0x20,
|
||||
0x5d, 0x00, 0x30, 0x00, 0x61, 0x00, 0x31, 0x30, 0x00, 0x72, 0x61, 0x6e,
|
||||
0x67, 0x65, 0x00, 0x69, 0x74, 0x65, 0x72, 0x00, 0x5f, 0x6c, 0x30, 0x00,
|
||||
0x5f, 0x6c, 0x30, 0x2e, 0x5f, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x5f,
|
||||
0x00, 0x69, 0x00, 0x35, 0x00, 0x3d, 0x3d, 0x00, 0x2b, 0x00, 0x66, 0x6f,
|
||||
0x72, 0x5f, 0x69, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75,
|
||||
0x65, 0x00, 0x34, 0x30, 0x00, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x5f,
|
||||
0x45, 0x51, 0x00, 0x66, 0x6f, 0x72, 0x5f, 0x69, 0x66, 0x5f, 0x62, 0x72,
|
||||
0x65, 0x61, 0x6b, 0x00, 0x33, 0x00, 0x5f, 0x6c, 0x31, 0x00, 0x5f, 0x6c,
|
||||
0x31, 0x2e, 0x5f, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x5f, 0x00, 0x6b,
|
||||
0x00, 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x5f,
|
||||
0x72, 0x61, 0x6e, 0x67, 0x65, 0x00, 0x33, 0x30, 0x00, 0x66, 0x6f, 0x72,
|
||||
0x5f, 0x69, 0x6e, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x00, 0x34, 0x35,
|
||||
0x00, 0x50, 0x69, 0x6b, 0x61, 0x53, 0x74, 0x64, 0x44, 0x61, 0x74, 0x61,
|
||||
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x00, 0x6c, 0x69, 0x73, 0x74, 0x00, 0x37,
|
||||
0x00, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64,
|
||||
0x00, 0x65, 0x65, 0x65, 0x00, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x6c, 0x65,
|
||||
0x6e, 0x00, 0x6c, 0x65, 0x6e, 0x00, 0x69, 0x74, 0x65, 0x6d, 0x00, 0x6c,
|
||||
0x69, 0x73, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x6c, 0x6f, 0x6f, 0x70,
|
||||
0x00, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x67, 0x65, 0x74, 0x00, 0x61, 0x31,
|
||||
0x00, 0x61, 0x32, 0x00, 0x72, 0x65, 0x73, 0x00, 0x50, 0x69, 0x6b, 0x61,
|
||||
0x53, 0x74, 0x64, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x69, 0x63, 0x74,
|
||||
0x00, 0x64, 0x69, 0x63, 0x74, 0x00, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x73,
|
||||
0x65, 0x74, 0x00, 0x62, 0x00, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x72, 0x65,
|
||||
0x6d, 0x6f, 0x76, 0x65, 0x00, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x67, 0x65,
|
||||
0x74, 0x00, 0x50, 0x69, 0x6b, 0x61, 0x53, 0x74, 0x64, 0x44, 0x61, 0x74,
|
||||
0x61, 0x5f, 0x32, 0x00, 0x6e, 0x75, 0x6d, 0x00, 0x6a, 0x00, 0x69, 0x73,
|
||||
0x5f, 0x70, 0x72, 0x69, 0x6d, 0x65, 0x00, 0x25, 0x00, 0x70, 0x72, 0x69,
|
||||
0x6d, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x33, 0x30,
|
||||
0x00, 0x31, 0x32, 0x39, 0x00, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d,
|
||||
0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d,
|
||||
0x3d, 0x00, 0x5b, 0x55, 0x6e, 0x69, 0x74, 0x20, 0x54, 0x65, 0x73, 0x74,
|
||||
0x73, 0x20, 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x5d, 0x00, 0x6d,
|
||||
0x65, 0x6d, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x6d, 0x61, 0x78, 0x3a,
|
||||
0x00, 0x6d, 0x65, 0x6d, 0x2e, 0x6d, 0x61, 0x78, 0x00, 0x74, 0x65, 0x73,
|
||||
0x74, 0x5c, 0x72, 0x5c, 0x6e, 0x5c, 0x72, 0x5c, 0x6e, 0x00, 0x65, 0x6e,
|
||||
0x64, 0x5c, 0x72, 0x5c, 0x6e, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,109 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#include "PikaMain.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
PikaObj *__pikaMain;
|
||||
PikaObj *pikaScriptInit(void){
|
||||
__platform_printf("======[pikascript packages installed]======\r\n");
|
||||
__platform_printf("===========================================\r\n");
|
||||
__pikaMain = newRootObj("pikaMain", New_PikaMain);
|
||||
extern unsigned char pikaModules_py_a[];
|
||||
obj_linkLibrary(__pikaMain, pikaModules_py_a);
|
||||
#if PIKA_INIT_STRING_ENABLE
|
||||
obj_run(__pikaMain,
|
||||
"import PikaStdLib\n"
|
||||
"import PikaStdData\n"
|
||||
"mem = PikaStdLib.MemChecker()\n"
|
||||
"mem.resetMax()\n"
|
||||
"def EXPECT_EQ(test_name, input, expected):\n"
|
||||
" print('-----TEST-----')\n"
|
||||
" print(test_name)\n"
|
||||
" if input != expected:\n"
|
||||
" print('[Error]')\n"
|
||||
" print(test_name)\n"
|
||||
" print('[info] Expected:')\n"
|
||||
" print(expected)\n"
|
||||
" print('[info] Input:')\n"
|
||||
" print(input)\n"
|
||||
" # error\n"
|
||||
" while True:\n"
|
||||
" is_error = 1\n"
|
||||
" else:\n"
|
||||
" print('[ OK ]')\n"
|
||||
"a = 0\n"
|
||||
"for i in range(0, 10):\n"
|
||||
" if i == 5:\n"
|
||||
" continue\n"
|
||||
" a = a + i\n"
|
||||
"EXPECT_EQ('for_if_continue', a, 40)\n"
|
||||
" \n"
|
||||
"a = 0\n"
|
||||
"for i in range(0, 10):\n"
|
||||
" if i == 5:\n"
|
||||
" break\n"
|
||||
" a = a + i\n"
|
||||
"EXPECT_EQ('for_if_break', a, 10)\n"
|
||||
"a = 0\n"
|
||||
"for i in range(0, 10):\n"
|
||||
" for k in range(0, 3):\n"
|
||||
" # print(k)\n"
|
||||
" a = a + k\n"
|
||||
"EXPECT_EQ('for_for_in_range', a, 30)\n"
|
||||
"a = 0\n"
|
||||
"for i in range(0, 10):\n"
|
||||
" # print(i)\n"
|
||||
" a = a + i\n"
|
||||
"EXPECT_EQ('for_in_range', a, 45)\n"
|
||||
"list = PikaStdData.List()\n"
|
||||
"list.append(7)\n"
|
||||
"list.append('eee')\n"
|
||||
"len = list.len()\n"
|
||||
"for item in list:\n"
|
||||
" # print(item)\n"
|
||||
" a = item\n"
|
||||
"EXPECT_EQ('list_for_loop', a, 'eee')\n"
|
||||
"list = PikaStdData.List()\n"
|
||||
"list.append(7)\n"
|
||||
"list.append('eee')\n"
|
||||
"len = list.len()\n"
|
||||
"a1 = list.get(0)\n"
|
||||
"a2 = list.get(1)\n"
|
||||
"res = iter(list)\n"
|
||||
"EXPECT_EQ('iter', res, list)\n"
|
||||
"dict = PikaStdData.Dict()\n"
|
||||
"dict.set('a', 1)\n"
|
||||
"dict.set('b', 2)\n"
|
||||
"dict.remove('b')\n"
|
||||
"a = dict.get('a')\n"
|
||||
"b = dict.get('b')\n"
|
||||
"EXPECT_EQ('PikaStdData', a, 1)\n"
|
||||
"EXPECT_EQ('PikaStdData_2', b, 0)\n"
|
||||
"num = 0\n"
|
||||
"i = 2\n"
|
||||
"for i in range(2,30):\n"
|
||||
" j=2\n"
|
||||
" is_prime = 1\n"
|
||||
" for j in range(2,i):\n"
|
||||
" if i%j==0 :\n"
|
||||
" is_prime = 0\n"
|
||||
" break\n"
|
||||
" if is_prime:\n"
|
||||
" num = num + i\n"
|
||||
"EXPECT_EQ('prime_number_30', num, 129)\n"
|
||||
"print('====================')\n"
|
||||
"print('[Unit Tests Succeed]')\n"
|
||||
"print('====================')\n"
|
||||
"print('mem used max:')\n"
|
||||
"mem.max()\n"
|
||||
"print(\"test\\r\\n\\r\\n\")\n"
|
||||
"print(\"end\\r\\n\")\n"
|
||||
"\n");
|
||||
#else
|
||||
obj_runModule(__pikaMain, "main");
|
||||
#endif
|
||||
return __pikaMain;
|
||||
}
|
||||
|
@ -1,13 +0,0 @@
|
||||
/* ******************************** */
|
||||
/* Warning! Don't modify this file! */
|
||||
/* ******************************** */
|
||||
#ifndef __pikaScript__H
|
||||
#define __pikaScript__H
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "PikaObj.h"
|
||||
#include "PikaMain.h"
|
||||
|
||||
PikaObj * pikaScriptInit(void);
|
||||
|
||||
#endif
|
Binary file not shown.
@ -167,6 +167,11 @@
|
||||
<AccSizeX>0</AccSizeX>
|
||||
</Mm>
|
||||
</MemoryWindow1>
|
||||
<ScvdPack>
|
||||
<Filename>D:\Users\lyon\AppData\Local\Arm\Packs\Keil\ARM_Compiler\1.7.2\EventRecorder.scvd</Filename>
|
||||
<Type>Keil.ARM_Compiler.1.7.2</Type>
|
||||
<SubType>1</SubType>
|
||||
</ScvdPack>
|
||||
<ToolboxButtons>
|
||||
<Wi>
|
||||
<IntNumber>0</IntNumber>
|
||||
|
Loading…
x
Reference in New Issue
Block a user