Commit graph

11 commits

Author SHA1 Message Date
wlxwlxwlx
18b953c7be
increase size of jump operands (#438)
* [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
shiyuge
e338512259
fix: do not invert token.Less to token.Greater in compiler (#391)
* fix: do not invert token.Less to token.Great in compiler

* unittest: do not invert token.Less to token.Great in compiler
2022-08-29 17:02:14 +01:00
E Sequeira
6fc8053992
fix runtime panics on self assignment (#387) 2022-07-20 16:09:43 +01:00
E Sequeira
71459c44f6
fix deadcode optimization (#378) 2022-06-10 11:15:34 +05:30
KEINOS
4846cf5243
add custom extension support for importing source file (#350)
* chore: add tests for custom extension

* feat: cusom source extension #286

* fix: path to test directory

* add getter + change setter name for file extension

* add tests of source file extension validation

* fix: add validation for file extension names

* fix: property importExt -> importFileExt

* fix: redundant check (no resetting)

* fix: failing test wich did not follow the new spec

* chore: add detailed description of the test

* chore: fix doc comment to be descriptive

* docs: add note about customizing the file extension
2021-11-13 15:13:39 -08:00
daniel
2565e0553d
fix issues with symbols in global scope blocks (#318) 2020-09-17 17:15:42 -07:00
daniel
15494e1691
fix local symbol resolution bug (#316)
* fix local symbol resolution bug

* 1
2020-09-13 19:33:48 -07:00
Ozan Hacıbekiroğlu
7834251c84
spread last call argument v2 (#302) 2020-06-08 18:54:24 +02:00
daniel
d5b24138d3
add go module v2 (#244) 2019-12-29 13:38:51 -08:00
daniel
a9a233a750
fix internal package issue (#241)
* fix internal package issue

* ExampleSimple -> Example
2019-12-24 07:42:30 -08:00
daniel
c88a5f506e
some code clean up (#237) 2019-12-20 11:40:38 -08:00