diff --git a/bsp/pico-dev/pikascript/rust-msc-latest-win10.exe b/bsp/pico-dev/pikascript/rust-msc-latest-win10.exe index e84369603..e83302f9b 100644 Binary files a/bsp/pico-dev/pikascript/rust-msc-latest-win10.exe and b/bsp/pico-dev/pikascript/rust-msc-latest-win10.exe differ diff --git a/port/linux/package/pikascript/main.py b/port/linux/package/pikascript/main.py index aee1e8476..84e7b1de5 100644 --- a/port/linux/package/pikascript/main.py +++ b/port/linux/package/pikascript/main.py @@ -1,3 +1,4 @@ +from PikaObj import * import PikaStdLib import PikaStdData import ctypes @@ -5,4 +6,6 @@ import GTestTask import PikaMath import PikaStdDevice import test_module1 -import test_cmodule \ No newline at end of file +import test_cmodule + +print('hello pikascript!') \ No newline at end of file diff --git a/src/PikaParser.c b/src/PikaParser.c index c09696015..a16a9b730 100644 --- a/src/PikaParser.c +++ b/src/PikaParser.c @@ -1437,6 +1437,12 @@ static char* Parser_PreProcess_from(Args* buffs_p, char* line) { alias = class; } + /* skip PikaObj */ + if (strEqu(module, "PikaObj")){ + line_out = strsCopy(buffs_p, ""); + goto exit; + } + line_out = strsFormat(&buffs, PIKA_LINE_BUFF_SIZE, "import %s\n%s = %s.%s", module, alias, module, class); line_out = strsCopy(buffs_p, line_out); diff --git a/tools/pikaCompiler/rust-msc-latest-win10.exe b/tools/pikaCompiler/rust-msc-latest-win10.exe index 5c7656d43..e83302f9b 100644 Binary files a/tools/pikaCompiler/rust-msc-latest-win10.exe and b/tools/pikaCompiler/rust-msc-latest-win10.exe differ