Commit graph

16 commits

Author SHA1 Message Date
shikbupt
e9b03930ce
fix the import expr string output () 2024-02-24 13:22:39 +00:00
wlxwlxwlx
18b953c7be
increase size of jump operands ()
* [OpJumpFalse, OpAndJump, OpOrJump, OpJump], these four instructions have been changed to use 4 bytes to avoid precision loss and panic when the number of instructions exceeds the maximum of 16 bits (65535)

* update test cases

* update test cases

---------

Co-authored-by: 王录祥 <wanglx@smartsteps.com>
2023-12-20 13:13:23 -05:00
E Sequeira
da09c300a5
Revert "[OpJumpFalse, OpAndJump, OpOrJump, OpJump], these four instructions have been changed to use 4 bytes to avoid precision loss and panic when the number of instructions exceeds the maximum of 16 bits (65535) ()" ()
This reverts commit 18424deb5a.
2023-12-05 20:52:53 +00:00
wlxwlxwlx
18424deb5a
[OpJumpFalse, OpAndJump, OpOrJump, OpJump], these four instructions have been changed to use 4 bytes to avoid precision loss and panic when the number of instructions exceeds the maximum of 16 bits (65535) ()
Co-authored-by: 王录祥 <wanglx@smartsteps.com>
2023-12-05 19:30:50 +00:00
Adrian Lee
f90bc00af2
bugfix: parse expect error when mis match braces ()
* bugfix: parse expect error when mis match braces

Change-Id: Iba1ad456d5b020375bb0416f44fb54bc2e346d62

* fix wrong test case in vm_test

Change-Id: Idcdaf7ecc93eb61d374249d11282b8286557d30d

---------

Co-authored-by: lihongyuan <lihongyuan.adrian@bytedance.com>
2023-04-23 07:37:59 +01:00
Józef Sokołowski
6fc27defb8
add support for parsing binary, octal and hex numbers ()
Fixes 

Co-authored-by: Józef Sokołowski <jozef.sokolowski@gmail.com>
2022-06-15 09:50:39 +05:30
Ozan Hacıbekiroğlu
7834251c84
spread last call argument v2 () 2020-06-08 18:54:24 +02:00
daniel
d5b24138d3
add go module v2 () 2019-12-29 13:38:51 -08:00
daniel
a9a233a750
fix internal package issue ()
* fix internal package issue

* ExampleSimple -> Example
2019-12-24 07:42:30 -08:00
Daniel Kang
27438eea6f update directory package structure 2019-01-11 02:27:28 -08:00
Daniel Kang
53af0d6328 move file and fileset to source package 2019-01-11 01:16:34 -08:00
Daniel Kang
8e5657d67c fix CharLit parser bug 2019-01-10 02:45:20 -08:00
Daniel Kang
c2305f3cce fix parsing and equality bug of "undefined" 2019-01-09 17:26:30 -08:00
Daniel Kang
ce7e5cc980 type conversion builtin functions: string(), int(), bool(), float(), char() 2019-01-09 17:18:37 -08:00
Daniel Kang
60c95c5de8 token.CHAR -> token.Char, token.STRING -> token.String 2019-01-09 08:58:18 -08:00
Daniel Kang
2c3282da21 initial commit 2019-01-08 23:17:42 -08:00