Lyon 3 лет назад
Родитель
Сommit
56c5027b48
65 измененных файлов с 779 добавлено и 211 удалено
  1. 6 6
      port/cmsis-pack/PikaTech.PikaScript.pdsc
  2. 6 6
      port/cmsis-pack/pikascript/PikaTech.PikaScript.pdsc
  3. 2 2
      port/cmsis-pack/pikascript/makepdsc.py
  4. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaDebug.h
  5. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaDebug_Debuger.h
  6. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaMain.h
  7. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData.h
  8. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_ByteArray.h
  9. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_Dict.h
  10. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_FILEIO.h
  11. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_List.h
  12. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_String.h
  13. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_Tuple.h
  14. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_Utils.h
  15. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdData_dict_keys.h
  16. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdLib.h
  17. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_MemChecker.h
  18. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_RangeObj.h
  19. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_StringObj.h
  20. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_SysObj.h
  21. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdTask.h
  22. 11 3
      port/cmsis-pack/pikascript/pikascript-api/PikaStdTask_Task.h
  23. 138 3
      port/cmsis-pack/pikascript/pikascript-api/__pikaBinding.c
  24. 12 4
      port/cmsis-pack/pikascript/pikascript-api/pikaScript.c
  25. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl.h
  26. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_ALIGN.h
  27. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_ANIM.h
  28. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_EVENT.h
  29. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_OPA.h
  30. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_PALETTE.h
  31. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_STATE.h
  32. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_arc.h
  33. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_bar.h
  34. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_btn.h
  35. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_checkbox.h
  36. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_dropdown.h
  37. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_indev_t.h
  38. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_label.h
  39. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_color_t.h
  40. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_event.h
  41. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_obj.h
  42. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_timer_t.h
  43. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_point_t.h
  44. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_roller.h
  45. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_slider.h
  46. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_style_t.h
  47. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_switch.h
  48. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_table.h
  49. 11 3
      port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_textarea.h
  50. 4 0
      port/cmsis-pack/pikascript/pikascript-core/PikaObj.c
  51. 19 2
      port/cmsis-pack/pikascript/pikascript-core/PikaObj.h
  52. 19 10
      port/cmsis-pack/pikascript/pikascript-core/PikaParser.c
  53. 40 26
      port/cmsis-pack/pikascript/pikascript-core/PikaVM.c
  54. 0 1
      port/cmsis-pack/pikascript/pikascript-core/PikaVM.h
  55. 2 2
      port/cmsis-pack/pikascript/pikascript-core/PikaVersion.h
  56. 6 4
      port/cmsis-pack/pikascript/pikascript-core/dataArg.c
  57. 19 2
      port/cmsis-pack/pikascript/pikascript-core/dataArg.h
  58. 7 2
      port/cmsis-pack/pikascript/pikascript-core/dataArgs.c
  59. 1 0
      port/cmsis-pack/pikascript/pikascript-core/dataArgs.h
  60. 3 3
      port/cmsis-pack/pikascript/pikascript-core/dataStack.c
  61. 1 1
      port/cmsis-pack/pikascript/pikascript-core/pika_config_valid.h
  62. 6 1
      port/cmsis-pack/pikascript/pikascript-lib/PikaStdLib/PikaStdData_Dict.c
  63. 2 2
      port/cmsis-pack/pikascript/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c
  64. 2 2
      port/cmsis-pack/pikascript/requestment.txt
  65. BIN
      port/cmsis-pack/pikascript/rust-msc-latest-win10.exe

+ 6 - 6
port/cmsis-pack/PikaTech.PikaScript.pdsc

@@ -16,8 +16,8 @@
   <repository type="git">https://github.com/pikasTech/pikascript.git</repository>
 
   <releases>
-    <release date="2022-08-26" version="1.10.3" url="https://gitee.com/Lyon1998/pikascript/attach_files/1151246/download">
-        - PikaScript v1.10.3
+    <release date="2022-08-30" version="1.10.6" url="https://gitee.com/Lyon1998/pikascript/attach_files/1151246/download">
+        - PikaScript v1.10.6
     </release>
 
   </releases>
@@ -91,7 +91,7 @@
 
     <condition id="Kernel">
       <description>The Kernel of the PikaScript</description>
-      <require Cclass="PikaScript" Cgroup="PikaScript" Csub="Core" Cversion="1.10.3" />
+      <require Cclass="PikaScript" Cgroup="PikaScript" Csub="Core" Cversion="1.10.6" />
     </condition>
 
     <condition id="NO_LVGL_Pack">
@@ -142,11 +142,11 @@
   -->
 
   <components>
-    <bundle Cbundle="PikaScript" Cclass="PikaScript" Cversion="1.10.3">
+    <bundle Cbundle="PikaScript" Cclass="PikaScript" Cversion="1.10.6">
       <description>an ultra-lightweight Python engine</description>
       <doc>https://pikadoc.readthedocs.io/en/latest/index.html</doc>
 
-      <component Cgroup="PikaScript" Csub="Core" Cversion="1.10.3">
+      <component Cgroup="PikaScript" Csub="Core" Cversion="1.10.6">
         <description>PikaScript Kernel</description>
         <files>
 <file attr="config" category="sourceC"  name="pikascript-core/BaseObj.c" />
@@ -208,7 +208,7 @@
         </RTE_Components_h>
       </component>
 
-      <component Cgroup="PikaScript" Csub="PikaStdLib" Cversion="1.10.3" condition="Kernel">
+      <component Cgroup="PikaScript" Csub="PikaStdLib" Cversion="1.10.6" condition="Kernel">
         <description>The standard library for PikaScript</description>
         <files>
 <file attr="config" category="sourceC"  name="pikascript-lib/PikaStdLib/PikaDebuger_Debuger.c" />

+ 6 - 6
port/cmsis-pack/pikascript/PikaTech.PikaScript.pdsc

@@ -16,8 +16,8 @@
   <repository type="git">https://github.com/pikasTech/pikascript.git</repository>
 
   <releases>
-    <release date="2022-08-26" version="1.10.3" url="https://gitee.com/Lyon1998/pikascript/attach_files/1151246/download">
-        - PikaScript v1.10.3
+    <release date="2022-08-30" version="1.10.6" url="https://gitee.com/Lyon1998/pikascript/attach_files/1151246/download">
+        - PikaScript v1.10.6
     </release>
 
   </releases>
@@ -91,7 +91,7 @@
 
     <condition id="Kernel">
       <description>The Kernel of the PikaScript</description>
-      <require Cclass="PikaScript" Cgroup="PikaScript" Csub="Core" Cversion="1.10.3" />
+      <require Cclass="PikaScript" Cgroup="PikaScript" Csub="Core" Cversion="1.10.6" />
     </condition>
 
     <condition id="NO_LVGL_Pack">
@@ -142,11 +142,11 @@
   -->
 
   <components>
-    <bundle Cbundle="PikaScript" Cclass="PikaScript" Cversion="1.10.3">
+    <bundle Cbundle="PikaScript" Cclass="PikaScript" Cversion="1.10.6">
       <description>an ultra-lightweight Python engine</description>
       <doc>https://pikadoc.readthedocs.io/en/latest/index.html</doc>
 
-      <component Cgroup="PikaScript" Csub="Core" Cversion="1.10.3">
+      <component Cgroup="PikaScript" Csub="Core" Cversion="1.10.6">
         <description>PikaScript Kernel</description>
         <files>
 <file attr="config" category="sourceC"  name="pikascript-core/BaseObj.c" />
@@ -208,7 +208,7 @@
         </RTE_Components_h>
       </component>
 
-      <component Cgroup="PikaScript" Csub="PikaStdLib" Cversion="1.10.3" condition="Kernel">
+      <component Cgroup="PikaScript" Csub="PikaStdLib" Cversion="1.10.6" condition="Kernel">
         <description>The standard library for PikaScript</description>
         <files>
 <file attr="config" category="sourceC"  name="pikascript-lib/PikaStdLib/PikaDebuger_Debuger.c" />

+ 2 - 2
port/cmsis-pack/pikascript/makepdsc.py

@@ -1,9 +1,9 @@
 import shutil
 import os
 
-version = "1.10.3"
+version = "1.10.6"
 version_lvgl = "0.2.0"
-date = "2022-08-26"
+date = "2022-08-30"
 url = "https://gitee.com/Lyon1998/pikascript/attach_files/1151246/download"
 
 

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaDebug.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaDebug__H
 #define __PikaDebug__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaDebug_Debuger.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaDebug_Debuger__H
 #define __PikaDebug_Debuger__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaMain.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaMain__H
 #define __PikaMain__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData__H
 #define __PikaStdData__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_ByteArray.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_ByteArray__H
 #define __PikaStdData_ByteArray__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_Dict.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_Dict__H
 #define __PikaStdData_Dict__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_FILEIO.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_FILEIO__H
 #define __PikaStdData_FILEIO__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_List.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_List__H
 #define __PikaStdData_List__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_String.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_String__H
 #define __PikaStdData_String__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_Tuple.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_Tuple__H
 #define __PikaStdData_Tuple__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_Utils.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_Utils__H
 #define __PikaStdData_Utils__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdData_dict_keys.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdData_dict_keys__H
 #define __PikaStdData_dict_keys__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdLib.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdLib__H
 #define __PikaStdLib__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_MemChecker.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdLib_MemChecker__H
 #define __PikaStdLib_MemChecker__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_RangeObj.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdLib_RangeObj__H
 #define __PikaStdLib_RangeObj__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_StringObj.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdLib_StringObj__H
 #define __PikaStdLib_StringObj__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdLib_SysObj.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdLib_SysObj__H
 #define __PikaStdLib_SysObj__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdTask.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdTask__H
 #define __PikaStdTask__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/PikaStdTask_Task.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __PikaStdTask_Task__H
 #define __PikaStdTask_Task__H
 #include <stdio.h>

+ 138 - 3
port/cmsis-pack/pikascript/pikascript-api/__pikaBinding.c

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include "BaseObj.h"
@@ -95,6 +103,7 @@
 #include "pika_lvgl_textarea.h"
 #include "pika_lvgl_lv_obj.h"
 
+#ifndef PIKA_MODULE_PIKADEBUG_DISABLE
 void PikaDebug_DebugerMethod(PikaObj *self, Args *args){
     Arg* res = PikaDebug_Debuger(self);
     method_returnArg(args, res);
@@ -105,7 +114,9 @@ PikaObj *New_PikaDebug(Args *args){
     class_defineConstructor(self, "Debuger()->any", PikaDebug_DebugerMethod);
     return self;
 }
+#endif
 
+#ifndef PIKA_MODULE_PIKADEBUG_DISABLE
 void PikaDebug_Debuger___init__Method(PikaObj *self, Args *args){
     PikaDebug_Debuger___init__(self);
 }
@@ -124,6 +135,9 @@ PikaObj *New_PikaDebug_Debuger(Args *args){
 Arg *PikaDebug_Debuger(PikaObj *self){
     return obj_newObjInPackage(New_PikaDebug_Debuger);
 }
+#endif
+
+#ifndef PIKA_MODULE_MAIN_DISABLE
 PikaObj *New_PikaMain(Args *args){
     PikaObj *self = New_PikaStdLib_SysObj(args);
     obj_newObj(self, "PikaStdLib", "PikaStdLib", New_PikaStdLib);
@@ -133,6 +147,9 @@ PikaObj *New_PikaMain(Args *args){
 Arg *PikaMain(PikaObj *self){
     return obj_newObjInPackage(New_PikaMain);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_ByteArrayMethod(PikaObj *self, Args *args){
     Arg* res = PikaStdData_ByteArray(self);
     method_returnArg(args, res);
@@ -185,7 +202,9 @@ PikaObj *New_PikaStdData(Args *args){
     class_defineConstructor(self, "dict_keys()->any", PikaStdData_dict_keysMethod);
     return self;
 }
+#endif
 
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_ByteArray___getitem__Method(PikaObj *self, Args *args){
     int __key = args_getInt(args, "__key");
     int res = PikaStdData_ByteArray___getitem__(self, __key);
@@ -238,6 +257,9 @@ PikaObj *New_PikaStdData_ByteArray(Args *args){
 Arg *PikaStdData_ByteArray(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_ByteArray);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_Dict___del__Method(PikaObj *self, Args *args){
     PikaStdData_Dict___del__(self);
 }
@@ -320,6 +342,9 @@ PikaObj *New_PikaStdData_Dict(Args *args){
 Arg *PikaStdData_Dict(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_Dict);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_FILEIO_closeMethod(PikaObj *self, Args *args){
     PikaStdData_FILEIO_close(self);
 }
@@ -387,6 +412,9 @@ PikaObj *New_PikaStdData_FILEIO(Args *args){
 Arg *PikaStdData_FILEIO(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_FILEIO);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_List___add__Method(PikaObj *self, Args *args){
     PikaObj* others = args_getPtr(args, "others");
     PikaObj* res = PikaStdData_List___add__(self, others);
@@ -438,6 +466,9 @@ PikaObj *New_PikaStdData_List(Args *args){
 Arg *PikaStdData_List(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_List);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_String___getitem__Method(PikaObj *self, Args *args){
     Arg* __key = args_getArg(args, "__key");
     Arg* res = PikaStdData_String___getitem__(self, __key);
@@ -573,6 +604,9 @@ PikaObj *New_PikaStdData_String(Args *args){
 Arg *PikaStdData_String(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_String);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_Tuple___del__Method(PikaObj *self, Args *args){
     PikaStdData_Tuple___del__(self);
 }
@@ -635,6 +669,9 @@ PikaObj *New_PikaStdData_Tuple(Args *args){
 Arg *PikaStdData_Tuple(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_Tuple);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 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);
@@ -650,6 +687,9 @@ PikaObj *New_PikaStdData_Utils(Args *args){
 Arg *PikaStdData_Utils(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_Utils);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDDATA_DISABLE
 void PikaStdData_dict_keys___iter__Method(PikaObj *self, Args *args){
     Arg* res = PikaStdData_dict_keys___iter__(self);
     method_returnArg(args, res);
@@ -682,6 +722,9 @@ PikaObj *New_PikaStdData_dict_keys(Args *args){
 Arg *PikaStdData_dict_keys(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdData_dict_keys);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDLIB_DISABLE
 void PikaStdLib_MemCheckerMethod(PikaObj *self, Args *args){
     Arg* res = PikaStdLib_MemChecker(self);
     method_returnArg(args, res);
@@ -714,7 +757,9 @@ PikaObj *New_PikaStdLib(Args *args){
     class_defineConstructor(self, "SysObj()->any", PikaStdLib_SysObjMethod);
     return self;
 }
+#endif
 
+#ifndef PIKA_MODULE_PIKASTDLIB_DISABLE
 void PikaStdLib_MemChecker_getMaxMethod(PikaObj *self, Args *args){
     double res = PikaStdLib_MemChecker_getMax(self);
     method_returnFloat(args, res);
@@ -756,6 +801,9 @@ PikaObj *New_PikaStdLib_MemChecker(Args *args){
 Arg *PikaStdLib_MemChecker(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdLib_MemChecker);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDLIB_DISABLE
 void PikaStdLib_RangeObj___next__Method(PikaObj *self, Args *args){
     Arg* res = PikaStdLib_RangeObj___next__(self);
     method_returnArg(args, res);
@@ -770,6 +818,9 @@ PikaObj *New_PikaStdLib_RangeObj(Args *args){
 Arg *PikaStdLib_RangeObj(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdLib_RangeObj);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDLIB_DISABLE
 void PikaStdLib_StringObj___next__Method(PikaObj *self, Args *args){
     Arg* res = PikaStdLib_StringObj___next__(self);
     method_returnArg(args, res);
@@ -784,6 +835,9 @@ PikaObj *New_PikaStdLib_StringObj(Args *args){
 Arg *PikaStdLib_StringObj(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdLib_StringObj);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDLIB_DISABLE
 void PikaStdLib_SysObj___getitem__Method(PikaObj *self, Args *args){
     Arg* obj = args_getArg(args, "obj");
     Arg* key = args_getArg(args, "key");
@@ -1003,6 +1057,9 @@ PikaObj *New_PikaStdLib_SysObj(Args *args){
 Arg *PikaStdLib_SysObj(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdLib_SysObj);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKASTDTASK_DISABLE
 void PikaStdTask_TaskMethod(PikaObj *self, Args *args){
     Arg* res = PikaStdTask_Task(self);
     method_returnArg(args, res);
@@ -1013,7 +1070,9 @@ PikaObj *New_PikaStdTask(Args *args){
     class_defineConstructor(self, "Task()->any", PikaStdTask_TaskMethod);
     return self;
 }
+#endif
 
+#ifndef PIKA_MODULE_PIKASTDTASK_DISABLE
 void PikaStdTask_Task___init__Method(PikaObj *self, Args *args){
     PikaStdTask_Task___init__(self);
 }
@@ -1069,6 +1128,9 @@ PikaObj *New_PikaStdTask_Task(Args *args){
 Arg *PikaStdTask_Task(PikaObj *self){
     return obj_newObjInPackage(New_PikaStdTask_Task);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_ALIGNMethod(PikaObj *self, Args *args){
     Arg* res = pika_lvgl_ALIGN(self);
     method_returnArg(args, res);
@@ -1262,7 +1324,9 @@ PikaObj *New_pika_lvgl(Args *args){
     class_defineMethod(self, "timer_create_basic()->lv_timer_t", pika_lvgl_timer_create_basicMethod);
     return self;
 }
+#endif
 
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_ALIGN___init__Method(PikaObj *self, Args *args){
     pika_lvgl_ALIGN___init__(self);
 }
@@ -1276,6 +1340,9 @@ PikaObj *New_pika_lvgl_ALIGN(Args *args){
 Arg *pika_lvgl_ALIGN(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_ALIGN);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_ANIM___init__Method(PikaObj *self, Args *args){
     pika_lvgl_ANIM___init__(self);
 }
@@ -1289,6 +1356,9 @@ PikaObj *New_pika_lvgl_ANIM(Args *args){
 Arg *pika_lvgl_ANIM(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_ANIM);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_EVENT___init__Method(PikaObj *self, Args *args){
     pika_lvgl_EVENT___init__(self);
 }
@@ -1302,6 +1372,9 @@ PikaObj *New_pika_lvgl_EVENT(Args *args){
 Arg *pika_lvgl_EVENT(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_EVENT);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_OPA___init__Method(PikaObj *self, Args *args){
     pika_lvgl_OPA___init__(self);
 }
@@ -1315,6 +1388,9 @@ PikaObj *New_pika_lvgl_OPA(Args *args){
 Arg *pika_lvgl_OPA(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_OPA);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_PALETTE___init__Method(PikaObj *self, Args *args){
     pika_lvgl_PALETTE___init__(self);
 }
@@ -1328,6 +1404,9 @@ PikaObj *New_pika_lvgl_PALETTE(Args *args){
 Arg *pika_lvgl_PALETTE(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_PALETTE);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_STATE___init__Method(PikaObj *self, Args *args){
     pika_lvgl_STATE___init__(self);
 }
@@ -1341,6 +1420,9 @@ PikaObj *New_pika_lvgl_STATE(Args *args){
 Arg *pika_lvgl_STATE(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_STATE);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_arc___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_arc___init__(self, parent);
@@ -1472,6 +1554,9 @@ PikaObj *New_pika_lvgl_arc(Args *args){
 Arg *pika_lvgl_arc(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_arc);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_bar___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_bar___init__(self, parent);
@@ -1543,6 +1628,9 @@ PikaObj *New_pika_lvgl_bar(Args *args){
 Arg *pika_lvgl_bar(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_bar);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_btn___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_btn___init__(self, parent);
@@ -1557,6 +1645,9 @@ PikaObj *New_pika_lvgl_btn(Args *args){
 Arg *pika_lvgl_btn(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_btn);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_checkbox___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_checkbox___init__(self, parent);
@@ -1589,6 +1680,9 @@ PikaObj *New_pika_lvgl_checkbox(Args *args){
 Arg *pika_lvgl_checkbox(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_checkbox);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_dropdown___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_dropdown___init__(self, parent);
@@ -1722,6 +1816,9 @@ PikaObj *New_pika_lvgl_dropdown(Args *args){
 Arg *pika_lvgl_dropdown(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_dropdown);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_indev_t_get_vectMethod(PikaObj *self, Args *args){
     PikaObj* point = args_getPtr(args, "point");
     pika_lvgl_indev_t_get_vect(self, point);
@@ -1736,6 +1833,9 @@ PikaObj *New_pika_lvgl_indev_t(Args *args){
 Arg *pika_lvgl_indev_t(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_indev_t);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_label___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_label___init__(self, parent);
@@ -1775,6 +1875,9 @@ PikaObj *New_pika_lvgl_label(Args *args){
 Arg *pika_lvgl_label(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_label);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 PikaObj *New_pika_lvgl_lv_color_t(Args *args){
     PikaObj *self = New_TinyObj(args);
     return self;
@@ -1783,6 +1886,9 @@ PikaObj *New_pika_lvgl_lv_color_t(Args *args){
 Arg *pika_lvgl_lv_color_t(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_lv_color_t);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_lv_event_get_codeMethod(PikaObj *self, Args *args){
     int res = pika_lvgl_lv_event_get_code(self);
     method_returnInt(args, res);
@@ -1803,6 +1909,9 @@ PikaObj *New_pika_lvgl_lv_event(Args *args){
 Arg *pika_lvgl_lv_event(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_lv_event);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_lv_obj_add_event_cbMethod(PikaObj *self, Args *args){
     Arg* event_cb = args_getArg(args, "event_cb");
     int filter = args_getInt(args, "filter");
@@ -1888,6 +1997,9 @@ PikaObj *New_pika_lvgl_lv_obj(Args *args){
 Arg *pika_lvgl_lv_obj(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_lv_obj);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_lv_timer_t__delMethod(PikaObj *self, Args *args){
     pika_lvgl_lv_timer_t__del(self);
 }
@@ -1913,6 +2025,9 @@ PikaObj *New_pika_lvgl_lv_timer_t(Args *args){
 Arg *pika_lvgl_lv_timer_t(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_lv_timer_t);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_point_t___init__Method(PikaObj *self, Args *args){
     pika_lvgl_point_t___init__(self);
 }
@@ -1926,6 +2041,9 @@ PikaObj *New_pika_lvgl_point_t(Args *args){
 Arg *pika_lvgl_point_t(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_point_t);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_roller___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_roller___init__(self, parent);
@@ -1953,6 +2071,9 @@ PikaObj *New_pika_lvgl_roller(Args *args){
 Arg *pika_lvgl_roller(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_roller);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_slider___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_slider___init__(self, parent);
@@ -1967,6 +2088,9 @@ PikaObj *New_pika_lvgl_slider(Args *args){
 Arg *pika_lvgl_slider(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_slider);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_style_t___init__Method(PikaObj *self, Args *args){
     pika_lvgl_style_t___init__(self);
 }
@@ -2039,6 +2163,9 @@ PikaObj *New_pika_lvgl_style_t(Args *args){
 Arg *pika_lvgl_style_t(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_style_t);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_switch___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_switch___init__(self, parent);
@@ -2053,6 +2180,9 @@ PikaObj *New_pika_lvgl_switch(Args *args){
 Arg *pika_lvgl_switch(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_switch);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_table___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_table___init__(self, parent);
@@ -2075,6 +2205,9 @@ PikaObj *New_pika_lvgl_table(Args *args){
 Arg *pika_lvgl_table(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_table);
 }
+#endif
+
+#ifndef PIKA_MODULE_PIKA_LVGL_DISABLE
 void pika_lvgl_textarea___init__Method(PikaObj *self, Args *args){
     PikaObj* parent = args_getPtr(args, "parent");
     pika_lvgl_textarea___init__(self, parent);
@@ -2095,3 +2228,5 @@ PikaObj *New_pika_lvgl_textarea(Args *args){
 Arg *pika_lvgl_textarea(PikaObj *self){
     return obj_newObjInPackage(New_pika_lvgl_textarea);
 }
+#endif
+

+ 12 - 4
port/cmsis-pack/pikascript/pikascript-api/pikaScript.c

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #include "PikaMain.h"
 #include <stdio.h>
 #include <stdlib.h>
@@ -9,7 +17,7 @@ PikaObj *__pikaMain;
 PikaObj *pikaScriptInit(void){
     __platform_printf("======[pikascript packages installed]======\r\n");
     pks_printVersion();
-    __platform_printf("PikaStdLib==v1.10.3\r\n");
+    __platform_printf("PikaStdLib==v1.10.6\r\n");
     __platform_printf("pika_lvgl==v0.2.0\r\n");
     __platform_printf("===========================================\r\n");
     __pikaMain = newRootObj("pikaMain", New_PikaMain);

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl__H
 #define __pika_lvgl__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_ALIGN.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_ALIGN__H
 #define __pika_lvgl_ALIGN__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_ANIM.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_ANIM__H
 #define __pika_lvgl_ANIM__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_EVENT.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_EVENT__H
 #define __pika_lvgl_EVENT__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_OPA.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_OPA__H
 #define __pika_lvgl_OPA__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_PALETTE.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_PALETTE__H
 #define __pika_lvgl_PALETTE__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_STATE.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_STATE__H
 #define __pika_lvgl_STATE__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_arc.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_arc__H
 #define __pika_lvgl_arc__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_bar.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_bar__H
 #define __pika_lvgl_bar__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_btn.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_btn__H
 #define __pika_lvgl_btn__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_checkbox.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_checkbox__H
 #define __pika_lvgl_checkbox__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_dropdown.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_dropdown__H
 #define __pika_lvgl_dropdown__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_indev_t.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_indev_t__H
 #define __pika_lvgl_indev_t__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_label.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_label__H
 #define __pika_lvgl_label__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_color_t.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_lv_color_t__H
 #define __pika_lvgl_lv_color_t__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_event.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_lv_event__H
 #define __pika_lvgl_lv_event__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_obj.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_lv_obj__H
 #define __pika_lvgl_lv_obj__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_lv_timer_t.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_lv_timer_t__H
 #define __pika_lvgl_lv_timer_t__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_point_t.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_point_t__H
 #define __pika_lvgl_point_t__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_roller.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_roller__H
 #define __pika_lvgl_roller__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_slider.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_slider__H
 #define __pika_lvgl_slider__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_style_t.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_style_t__H
 #define __pika_lvgl_style_t__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_switch.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_switch__H
 #define __pika_lvgl_switch__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_table.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_table__H
 #define __pika_lvgl_table__H
 #include <stdio.h>

+ 11 - 3
port/cmsis-pack/pikascript/pikascript-api/pika_lvgl_textarea.h

@@ -1,6 +1,14 @@
-/* ******************************** */
-/* Warning! Don't modify this file! */
-/* ******************************** */
+/*
+ * [Warning!] This file is auto-generated by pika compiler.
+ * Do not edit it manually.
+ * The source code is *.pyi file.
+ * More details: 
+ * English Doc:
+ * https://pikadoc.readthedocs.io/en/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ * Chinese Doc:
+ * https://pikadoc.readthedocs.io/zh/latest/PikaScript%20%E6%A8%A1%E5%9D%97%E6%A6%82%E8%BF%B0.html
+ */
+
 #ifndef __pika_lvgl_textarea__H
 #define __pika_lvgl_textarea__H
 #include <stdio.h>

+ 4 - 0
port/cmsis-pack/pikascript/pikascript-core/PikaObj.c

@@ -1189,3 +1189,7 @@ void pks_getVersion(char *buff)
 void* obj_getStruct(PikaObj* self, char* name) {
     return args_getStruct(self->list, name);
 }
+
+char* obj_cacheStr(PikaObj* self, char* str) {
+    return args_cacheStr(self->list, str);
+}

+ 19 - 2
port/cmsis-pack/pikascript/pikascript-core/PikaObj.h

@@ -286,7 +286,7 @@ PikaObj* Obj_linkLibraryFile(PikaObj* self, char* input_file_name);
 NewFun obj_getClass(PikaObj* obj);
 
 void pks_printVersion(void);
-void pks_getVersion(char *buff);
+void pks_getVersion(char* buff);
 void* obj_getStruct(PikaObj* self, char* name);
 
 #define obj_refcntDec(self) (((self)->refcnt--))
@@ -296,9 +296,26 @@ void* obj_getStruct(PikaObj* self, char* name);
 #define obj_setStruct(PikaObj_p_self, char_p_name, struct_) \
     args_setStruct(((PikaObj_p_self)->list), char_p_name, struct_)
 
-#define ABSTRACT_METHOD_DECLARE(x)                                        \
+#define ABSTRACT_METHOD_NEED_OVERRIDE_ERROR(_)                            \
     obj_setErrorCode(self, 1);                                            \
     __platform_printf("Error: abstract method `%s()` need override.\r\n", \
                       __FUNCTION__)
 
+#define WEAK_FUNCTION_NEED_OVERRIDE_ERROR(_)                            \
+    __platform_printf("Error: weak function `%s()` need override.\r\n", \
+                      __FUNCTION__);                                    \
+    while (1)
+
+char* obj_cacheStr(PikaObj* self, char* str);
+
+#define PIKASCRIPT_VERSION_TO_NUM(majer, minor, micro) \
+    majer * 100 * 100 + minor * 100 + micro
+
+#define PIKASCRIPT_VERSION_NUM                                        \
+    PIKASCRIPT_VERSION_TO_NUM(PIKA_VERSION_MAJOR, PIKA_VERSION_MINOR, \
+                              PIKA_VERSION_MICRO)
+
+#define PIKASCRIPT_VERSION_REQUIRE_MINIMUN(majer, minor, micro) \
+    (PIKASCRIPT_VERSION_NUM >= PIKASCRIPT_VERSION_TO_NUM(majer, minor, micro))
+
 #endif

+ 19 - 10
port/cmsis-pack/pikascript/pikascript-core/PikaParser.c

@@ -433,6 +433,7 @@ char* Lexer_parseLine(Args* outBuffs, char* stmt) {
     tokens_arg = arg_setStr(tokens_arg, "", "");
     int32_t size = strGetSize(stmt);
     uint8_t bracket_deepth = 0;
+    uint8_t cn2 = 0;
     uint8_t cn1 = 0;
     uint8_t c0 = 0;
     uint8_t c1 = 0;
@@ -449,6 +450,7 @@ char* Lexer_parseLine(Args* outBuffs, char* stmt) {
     /* process */
     for (int32_t i = 0; i < size; i++) {
         /* update char */
+        cn2 = 0;
         cn1 = 0;
         c0 = stmt[i];
         c1 = 0;
@@ -457,6 +459,9 @@ char* Lexer_parseLine(Args* outBuffs, char* stmt) {
         c4 = 0;
         c5 = 0;
         c6 = 0;
+        if (i - 2 >= 0) {
+            cn2 = stmt[i - 2];
+        }
         if (i - 1 >= 0) {
             cn1 = stmt[i - 1];
         }
@@ -488,20 +493,24 @@ char* Lexer_parseLine(Args* outBuffs, char* stmt) {
 
         /* solve string */
         if (0 == is_in_string) {
-            if ('\'' == c0 && '\\' != cn1) {
-                /* in ' */
-                is_in_string = 1;
-                continue;
+            if ('\'' == c0) {
+                if ('\\' != cn1 || ('\\' == cn1 && '\\' == cn2)) {
+                    /* in ' */
+                    is_in_string = 1;
+                    continue;
+                }
             }
-            if ('"' == c0 && '\\' != cn1) {
-                /* in "" */
-                is_in_string = 2;
-                continue;
+            if ('"' == c0) {
+                if ('\\' != cn1 || ('\\' == cn1 && '\\' == cn2)) {
+                    /* in "" */
+                    is_in_string = 2;
+                    continue;
+                }
             }
         }
 
         if (1 == is_in_string) {
-            if ('\'' == c0 && '\\' != cn1) {
+            if ('\'' == c0 && ('\\' != cn1 || ('\\' == cn1 && '\\' == cn2))) {
                 is_in_string = 0;
                 tokens_arg = Lexer_setSymbel(tokens_arg, stmt, i + 1,
                                              &symbol_start_index);
@@ -509,7 +518,7 @@ char* Lexer_parseLine(Args* outBuffs, char* stmt) {
             continue;
         }
         if (2 == is_in_string) {
-            if ('"' == c0 && '\\' != cn1) {
+            if ('"' == c0 && ('\\' != cn1 || ('\\' == cn1 && '\\' == cn2))) {
                 is_in_string = 0;
                 tokens_arg = Lexer_setSymbel(tokens_arg, stmt, i + 1,
                                              &symbol_start_index);

+ 40 - 26
port/cmsis-pack/pikascript/pikascript-core/PikaVM.c

@@ -75,6 +75,12 @@ static char* VMState_getConstWithInstructUnit(VMState* vm,
                                  instructUnit_getConstPoolIndex(ins_unit));
 }
 
+static int VMState_getInvokeDeepthNow(VMState* vm) {
+    /* support run byteCode */
+    InstructUnit* ins_unit = VMState_getInstructNow(vm);
+    return instructUnit_getInvokeDeepth(ins_unit);
+}
+
 static int32_t VMState_getAddrOffsetOfJmpBack(VMState* vm) {
     int offset = 0;
     int loop_deepth = -1;
@@ -177,6 +183,10 @@ static int32_t VMState_getAddrOffsetOfRaise(VMState* vm) {
         if ((NTR == ins)) {
             return offset;
         }
+        /* if not found except, return */
+        if (RET == ins) {
+            return 0;
+        }
     }
 }
 
@@ -392,7 +402,7 @@ static Arg* VM_instruction_handler_TRY(PikaObj* self,
                                        char* data,
                                        Arg* arg_ret_reg) {
     pika_assert(NULL != vm->try_info);
-    vm->try_info->try_state = TRY_STATE_TOP;
+    vm->try_info->try_state = TRY_STATE_INNER;
     return NULL;
 }
 
@@ -834,10 +844,9 @@ static Arg* VM_instruction_handler_RUN(PikaObj* self,
     TryInfo sub_try_info = {.try_state = TRY_STATE_NONE,
                             .try_result = TRY_RESULT_NONE};
     pika_assert(NULL != vm->try_info);
-    if (vm->try_info->try_state == TRY_STATE_TOP ||
-        vm->try_info->try_state == TRY_STATE_INNER) {
-        sub_try_info.try_state = TRY_STATE_INNER;
-    }
+
+    /* transfer try_state */
+    sub_try_info.try_state = vm->try_info->try_state;
 
     /* tuple or single arg */
     if (data[0] == 0) {
@@ -950,6 +959,11 @@ static Arg* VM_instruction_handler_RUN(PikaObj* self,
     return_arg = obj_runMethodArgWithState_noalloc(
         method_host_obj, sub_locals, method_arg, &sub_try_info, arg_ret_reg);
 
+    if (sub_try_info.try_result != TRY_RESULT_NONE) {
+        /* try result */
+        vm->error_code = sub_try_info.try_result;
+    }
+
     /* __init__() */
     if (ARG_TYPE_OBJECT_NEW == arg_getType(return_arg)) {
         arg_setType(return_arg, ARG_TYPE_OBJECT);
@@ -990,18 +1004,6 @@ static Arg* VM_instruction_handler_RUN(PikaObj* self,
         VMState_setErrorCode(vm, PIKA_RES_ERR_RUNTIME_ERROR);
     }
 
-    /* check try result */
-    if (sub_try_info.try_result == TRY_RESULT_RAISE) {
-        /* try error */
-        VMState_setErrorCode(vm, PIKA_RES_ERR_RUNTIME_ERROR);
-        if (vm->try_info->try_state == TRY_STATE_TOP) {
-            vm->jmp = VM_JMP_RAISE;
-        } else if (vm->try_info->try_state == TRY_STATE_INNER) {
-            vm->try_info->try_result = TRY_RESULT_RAISE;
-            goto exit;
-        }
-    }
-
     goto exit;
 exit:
     if (NULL != method_arg) {
@@ -1025,6 +1027,7 @@ static char* __get_transferd_str(Args* buffs, char* str, size_t* iout_p) {
     char* str_rep = strsReplace(buffs, str, "\\n", "\n");
     str_rep = strsReplace(buffs, str_rep, "\\r", "\r");
     str_rep = strsReplace(buffs, str_rep, "\\t", "\t");
+    str_rep = strsReplace(buffs, str_rep, "\\\\", "\\");
 
     char* transfered_str = args_getBuff(buffs, strGetSize(str_rep));
     size_t i_out = 0;
@@ -1088,6 +1091,13 @@ static Arg* VM_instruction_handler_OUT(PikaObj* self,
     // Arg* outArg = stack_popArg_alloc(&vm->stack);
     ArgType outArg_type = arg_getType(outArg);
 
+    if (VMState_getInvokeDeepthNow(vm) > 0) {
+        /* in block, is a keyword arg */
+        arg_setIsKeyword(outArg, PIKA_TRUE);
+        arg_setName(outArg, data);
+        return arg_copy_noalloc(outArg, arg_ret_reg);
+    }
+
     if (_checkLReg(data)) {
         uint8_t index = _getLRegIndex(data);
         if (argType_isObject(outArg_type)) {
@@ -1195,8 +1205,7 @@ static Arg* VM_instruction_handler_JEZ(PikaObj* self,
                                        VMState* vm,
                                        char* data,
                                        Arg* arg_ret_reg) {
-    int thisBlockDeepth;
-    thisBlockDeepth = VMState_getBlockDeepthNow(vm);
+    int thisBlockDeepth = VMState_getBlockDeepthNow(vm);
     int jmp_expect = fast_atoi(data);
     arg_newReg(pika_assertArg_reg, PIKA_ARG_BUFF_SIZE);
     Arg* pika_assertArg = stack_popArg(&(vm->stack), &pika_assertArg_reg);
@@ -1234,6 +1243,9 @@ static uint8_t VMState_getInputArgNum(VMState* vm) {
             break;
         }
         if (invode_deepth == invoke_deepth_this + 1) {
+            if (instructUnit_getInstruct(ins_unit_now) == OUT) {
+                continue;
+            }
             num++;
         }
         if (instructUnit_getIsNewLine(ins_unit_now)) {
@@ -1746,13 +1758,6 @@ static Arg* VM_instruction_handler_RIS(PikaObj* self,
     PIKA_RES err = (PIKA_RES)arg_getInt(err_arg);
     VMState_setErrorCode(vm, err);
     arg_deinit(err_arg);
-    /* raise jmp */
-    if (vm->try_info->try_state == TRY_STATE_TOP) {
-        vm->jmp = VM_JMP_RAISE;
-    } else if (vm->try_info->try_state == TRY_STATE_INNER) {
-        vm->try_info->try_result = TRY_RESULT_RAISE;
-        return VM_instruction_handler_RET(self, vm, data, arg_ret_reg);
-    }
     return NULL;
 }
 
@@ -1929,6 +1934,14 @@ static int pikaVM_runInstructUnit(PikaObj* self,
     /* run instruct */
     pika_assert(NULL != vm->try_info);
     return_arg = VM_instruct_handler_table[instruct](self, vm, data, &ret_reg);
+
+    if (vm->error_code != PIKA_RES_OK) {
+        /* raise jmp */
+        if (vm->try_info->try_state == TRY_STATE_INNER) {
+            vm->jmp = VM_JMP_RAISE;
+        };
+    }
+
     if (NULL != return_arg) {
         stack_pushArg(&(vm->stack), return_arg);
     }
@@ -1955,6 +1968,7 @@ nextLine:
         if (0 == offset) {
             /* can not found end of try, return */
             pc_next = VM_PC_EXIT;
+            vm->try_info->try_result = TRY_RESULT_RAISE;
             goto exit;
         }
         pc_next = vm->pc + offset;

+ 0 - 1
port/cmsis-pack/pikascript/pikascript-core/PikaVM.h

@@ -49,7 +49,6 @@ typedef enum { VM_PC_EXIT = -99999 } VM_PC;
 
 typedef enum {
     TRY_STATE_NONE = 0,
-    TRY_STATE_TOP,
     TRY_STATE_INNER,
 } TRY_STATE;
 

+ 2 - 2
port/cmsis-pack/pikascript/pikascript-core/PikaVersion.h

@@ -1,5 +1,5 @@
 #define PIKA_VERSION_MAJOR       1
 #define PIKA_VERSION_MINOR       10
-#define PIKA_VERSION_MICRO       3
+#define PIKA_VERSION_MICRO       6
 
-#define PIKA_EDIT_TIME      "2022/08/25 11:23:27"
+#define PIKA_EDIT_TIME      "2022/08/30 18:40:40"

+ 6 - 4
port/cmsis-pack/pikascript/pikascript-core/dataArg.c

@@ -57,7 +57,8 @@ static Arg* arg_init_hash(Hash nameHash,
     self->size = size;
     self->name_hash = nameHash;
     self->type = type;
-    self->serialized = PIKA_TRUE;
+    arg_setSerialized(self, PIKA_TRUE);
+    arg_setIsKeyword(self, PIKA_FALSE);
     __platform_memset(arg_getContent(self), 0,
                       aline_by(size, sizeof(uint32_t)));
     if (NULL != content) {
@@ -81,7 +82,8 @@ void arg_init_stack(Arg* self, uint8_t* buffer, uint32_t size) {
     self->size = size;
     self->type = ARG_TYPE_UNDEF;
     self->name_hash = 0;
-    self->serialized = PIKA_FALSE;
+    arg_setSerialized(self, PIKA_FALSE);
+    arg_setIsKeyword(self, PIKA_FALSE);
 }
 
 uint32_t arg_totleSize(Arg* self) {
@@ -339,7 +341,7 @@ Arg* arg_copy_noalloc(Arg* arg_src, Arg* arg_dict) {
     if (ARG_TYPE_OBJECT == arg_type) {
         obj_refcntInc((PikaObj*)arg_getPtr(arg_src));
     }
-    arg_dict->serialized = PIKA_FALSE;
+    arg_setSerialized(arg_dict, PIKA_FALSE);
     arg_dict = arg_setContent(arg_dict, arg_getContent(arg_src),
                               arg_getContentSize(arg_src));
     arg_dict = arg_setNameHash(arg_dict, arg_getNameHash(arg_src));
@@ -423,7 +425,7 @@ void arg_deinit(Arg* self) {
     }
     /* deinit arg pointed heap */
     arg_deinitHeap(self);
-    if (!self->serialized) {
+    if (!arg_getSerialized(self)) {
         return;
     }
     /* free the ref */

+ 19 - 2
port/cmsis-pack/pikascript/pikascript-core/dataArg.h

@@ -56,15 +56,17 @@ typedef enum {
 typedef void (*StructDeinitFun)(void* struct_);
 
 typedef struct Arg Arg;
+
 typedef union {
     Arg* next;
     uint8_t* buffer;
 } _arg_union;
+
 struct Arg {
     _arg_union _;
     uint32_t size;
     uint8_t type;
-    PIKA_BOOL serialized;
+    PIKA_BOOL flag;
     Hash name_hash;
     uint8_t content[];
 };
@@ -129,10 +131,25 @@ void arg_printBytes(Arg* self);
 Arg* arg_loadFile(Arg* self, char* filename);
 uint8_t argType_isObject(ArgType type);
 
+#define ARG_FLAG_MASK_SERIALIZED 0x01
+#define ARG_FLAG_MASK_IsKeyword 0x02
+
 #define arg_getNext(self) ((self)->_.next)
 #define arg_getSize(self) ((self)->size)
+#define arg_getSerialized(self) ((self)->flag & ARG_FLAG_MASK_SERIALIZED)
+#define arg_setSerialized(self, __serialized)                           \
+    do {                                                                \
+        (self)->flag = ((self)->flag & ~ARG_FLAG_MASK_SERIALIZED) |     \
+                       ((__serialized) ? ARG_FLAG_MASK_SERIALIZED : 0); \
+    } while (0)
+#define arg_getIsKeyword(self) ((self)->flag & ARG_FLAG_MASK_IsKeyword)
+#define arg_setIsKeyword(self, __isKeyword)                           \
+    do {                                                              \
+        (self)->flag = ((self)->flag & ~ARG_FLAG_MASK_IsKeyword) |    \
+                       ((__isKeyword) ? ARG_FLAG_MASK_IsKeyword : 0); \
+    } while (0)
 #define arg_getContent(self) \
-    ((self)->serialized ? (self)->content : ((self)->_.buffer))
+    ((arg_getSerialized(self)) ? (self)->content : ((self)->_.buffer))
 #define arg_getNext(self) ((self)->_.next)
 #define arg_setNext(self, __next) ((self)->_.next = (__next))
 

+ 7 - 2
port/cmsis-pack/pikascript/pikascript-core/dataArgs.c

@@ -88,7 +88,7 @@ PIKA_RES args_setStr(Args* self, char* name, char* strIn) {
 
 PIKA_RES args_pushArg(Args* self, Arg* arg) {
     Arg* new_arg = NULL;
-    if (!arg->serialized) {
+    if (!arg_getSerialized(arg)) {
         new_arg = arg_copy(arg);
         arg_deinit(arg);
     } else {
@@ -306,7 +306,7 @@ PIKA_RES __updateArg(Args* self, Arg* argNew) {
     arg_setNext((Arg*)priorNode, (Arg*)nodeToUpdate);
     goto exit;
 exit:
-    if (!argNew->serialized) {
+    if (!arg_getSerialized(argNew)) {
         return PIKA_RES_OK;
     }
     arg_freeContent(argNew);
@@ -699,3 +699,8 @@ PikaTuple* args_getTuple(Args* self, char* name) {
     PikaObj* tuple_obj = args_getPtr(self, name);
     return obj_getPtr(tuple_obj, "list");
 }
+
+char* args_cacheStr(Args* self, char* str){
+    args_setStr(self, "__str_cache", str);
+    return args_getStr(self, "__str_cache");
+}

+ 1 - 0
port/cmsis-pack/pikascript/pikascript-core/dataArgs.h

@@ -187,5 +187,6 @@ PikaTuple* New_tuple(void);
 PikaTuple* args_getTuple(Args* self, char* name);
 
 char* strsFormatList(Args* out_buffs, char* fmt, PikaList* list);
+char* args_cacheStr(Args* self, char* str);
 
 #endif

+ 3 - 3
port/cmsis-pack/pikascript/pikascript-core/dataStack.c

@@ -74,14 +74,14 @@ void stack_pushPyload(Stack* stack, Arg* content, size_t size) {
         while (1) {
         }
     }
-    if (content->serialized) {
+    if (arg_getSerialized(content)) {
         __platform_memcpy(stack->sp, content, size);
     } else {
         __platform_memcpy(stack->sp, content, sizeof(Arg));
         __platform_memcpy(stack->sp + sizeof(Arg), content->_.buffer,
                           size - sizeof(Arg));
         /* transfer to serialized form */
-        ((Arg*)stack->sp)->serialized = PIKA_TRUE;
+        arg_setSerialized((Arg*)stack->sp, PIKA_TRUE);
     }
     stack->sp += size;
 }
@@ -116,7 +116,7 @@ static int32_t _stack_pushArg(Stack* stack, Arg* arg, PIKA_BOOL is_alloc) {
 
 int32_t stack_pushArg(Stack* stack, Arg* arg) {
     pika_assert(arg != NULL);
-    if (arg->serialized) {
+    if (arg_getSerialized(arg)) {
         return _stack_pushArg(stack, arg, PIKA_TRUE);
     }
     return _stack_pushArg(stack, arg, PIKA_FALSE);

+ 1 - 1
port/cmsis-pack/pikascript/pikascript-core/pika_config_valid.h

@@ -207,7 +207,7 @@
     #endif
 
     #ifndef PIKA_INIT_STRING_ENABLE
-        #define PIKA_INIT_STRING_ENABLE 1
+        #define PIKA_INIT_STRING_ENABLE 0
     #endif
     
     #ifndef PIKA_SYNTAX_SLICE_ENABLE

+ 6 - 1
port/cmsis-pack/pikascript/pikascript-lib/PikaStdLib/PikaStdData_Dict.c

@@ -7,7 +7,12 @@
 
 Arg* PikaStdData_Dict_get(PikaObj* self, char* key) {
     PikaDict* dict = obj_getPtr(self, "dict");
-    return arg_copy(dict_getArg(dict, key));
+    Arg* res = dict_getArg(dict, key);
+    if (NULL == res) {
+        obj_setErrorCode(self, PIKA_RES_ERR_RUNTIME_ERROR);
+        __platform_printf("KeyError: %s\n", key);
+    }
+    return arg_copy(res);
 }
 
 void PikaStdData_Dict___init__(PikaObj* self) {

+ 2 - 2
port/cmsis-pack/pikascript/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c

@@ -384,7 +384,7 @@ static void __print_arg(PikaObj* self, Arg* val) {
     args_setArg(print_args, arg_copy(val));
     char* res = args_print(print_args, "val");
     if (NULL == res) {
-        obj_setSysOut(self, "[error] print: can not print val");
+        obj_setSysOut(self, "Error: can not print val");
         obj_setErrorCode(self, 1);
         args_deinit(print_args);
         return;
@@ -422,7 +422,7 @@ void PikaStdLib_SysObj_printNoEnd(PikaObj* self, Arg* val) {
     args_setArg(print_args, arg_copy(val));
     char* res = args_print(print_args, "val");
     if (NULL == res) {
-        obj_setSysOut(self, "[error] print: can not print val");
+        obj_setSysOut(self, "Error: print: can not print val");
         obj_setErrorCode(self, 1);
         args_deinit(print_args);
         return;

+ 2 - 2
port/cmsis-pack/pikascript/requestment.txt

@@ -1,3 +1,3 @@
-pikascript-core==v1.10.3
-PikaStdLib==v1.10.3
+pikascript-core==v1.10.6
+PikaStdLib==v1.10.6
 pika_lvgl==v0.2.0

BIN
port/cmsis-pack/pikascript/rust-msc-latest-win10.exe