Commit graph

327 commits

Author SHA1 Message Date
skelly
2edd39e0c3
Update objects.md () 2023-01-30 06:43:17 +00:00
E Sequeira
7108e9c50d
fix golint () 2023-01-28 15:30:26 +00:00
Sean Chittenden
f980e7e724
Downgrade exclusive lock to shared lock when cloning a script () 2023-01-04 05:32:27 +00:00
I Putu Susila
a419bfc93a
fix slice low/high index shadowing variables in vm () 2022-09-26 08:19:00 +01:00
I Putu Susila
dfcfd6661c
Use Object.Copy when cloning globals in Compiled () 2022-09-25 15:30:50 +01:00
shiyuge
8a3f5bdb11
fix: copy SourceMap in vm OpClosure branch () 2022-09-24 16:48:53 +01:00
shiyuge
e338512259
fix: do not invert token.Less to token.Greater in compiler ()
* 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 () 2022-07-20 16:09:43 +01:00
E Sequeira
818d6dc687
vim syntax highlighter () 2022-06-15 17:04:19 +05:30
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
E Sequeira
9bf03596b1
limit to go 1.16+ () 2022-06-12 21:32:53 +05:30
E Sequeira
131638ffeb
update goreleaser to fix releases () 2022-06-11 12:49:14 +05:30
E Sequeira
71459c44f6
fix deadcode optimization () 2022-06-10 11:15:34 +05:30
Nicolas Stenberg-Daniil
f90d433d21
Corrected/changed variable names of the base64 and hex imports (instead of fmt) to correspond with the module name itself. () 2022-04-15 18:38:56 +01:00
Józef Sokołowski
0afdfdeb2f
Fix copying user functions ()
* fix copying user functions

Fixes 

* remove EncodingId

Co-authored-by: Józef Sokołowski <jozef.sokolowski@gmail.com>
2022-02-08 08:55:33 -08:00
Michał Idzikowski
7b5d207914
fix documentation for enum.filter ()
* fix documentation for enum.filter

fixes https://github.com/d5/tengo/issues/358

* update stdlib code comment for enum.filter
2022-02-06 22:53:27 -08:00
daniel
1bcc1892c8
Update README.md 2022-01-16 18:50:06 -08:00
KEINOS
4846cf5243
add custom extension support for importing source file ()
* chore: add tests for custom extension

* feat: cusom source extension 

* 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
Mikael Ganehag Brorsson
a7666f0e7d
Handle panics by deferring recover as an error ()
* Handle panics by deferring recover as an error

* Check for type in recover handler
2021-11-13 15:10:47 -08:00
Bruno Franca dos Reis
3b65ddf2b8
Extract ModuleGetter interface for dynamic imports ()
* Extract ModuleGetter interface for dynamic imports

* ModuleGetter: add example in interop doc.
2021-11-06 17:34:48 -07:00
Ralph Caraveo III
d9b300cb70
For the OpMap VM instruction, since numElements is known just use the capacity hint. () 2021-09-21 13:47:21 +01:00
daniel
de6dc1e9a9
Update README.md 2021-09-05 13:40:48 -07:00
daniel
ac805806f8
add Eval function () 2021-07-05 01:49:38 -07:00
daniel
50af716288
Update README.md 2021-06-19 10:49:56 -07:00
Anders Xiao
885830428b
PR: builtin range function ()
* builtin range function 

* change empty range logic

* fix unit test error message

* fix github env ()

* fix ErrInvalidRangeStep comments

* fix github env ()

* builtin range function 

* change empty range logic

* fix unit test error message

* fix ErrInvalidRangeStep comments

* fix lint

Co-authored-by: geseq <5458743+geseq@users.noreply.github.com>
2021-03-01 22:34:04 -08:00
geseq
c51d02f80e
fix github env () 2021-03-02 07:10:36 +01:00
daniel
2565e0553d
fix issues with symbols in global scope blocks () 2020-09-17 17:15:42 -07:00
daniel
15494e1691
fix local symbol resolution bug ()
* fix local symbol resolution bug

* 1
2020-09-13 19:33:48 -07:00
Ozan Hacıbekiroğlu
7834251c84
spread last call argument v2 () 2020-06-08 18:54:24 +02:00
Ozan Hacıbekiroğlu
366c69902f
add string comparison support ()
* enable relative imports

* update per 1st review

* remove symlink stuffs

* fix cli run in make file

* make resolving import path explicit

* fix importDir

* add string comparison operators

* fix duplicates
2020-05-25 10:53:52 -07:00
daniel
d1dd01499f
fix a bug in bytecode optimization code ()
* fix a bug in bytecode optimization code

* add a test
2020-05-23 08:23:33 -07:00
daniel
d08a636e7c
add GitHub Actions () 2020-05-22 23:09:56 -07:00
Ozan Hacıbekiroğlu
4ed75764ce
enable relative imports ()
* enable relative imports

* update per 1st review

* remove symlink stuffs

* fix cli run in make file

* make resolving import path explicit

* fix importDir
2020-05-22 13:57:38 -07:00
Ozan Hacıbekiroğlu
e059953c35
fix for in loop symbols ()
* fix for in loop symbols

* fix comments
2020-05-22 11:38:29 -07:00
daniel
22e1e35e11
Update README.md 2020-05-19 08:12:42 -07:00
Ozan Hacıbekiroğlu
e6689015df
Fix nested file imports ()
* fix nested file import

* better bytes prefix check

* remove comment
2020-05-19 07:24:03 -07:00
daniel
50d0ba75d5
fix a compiler bug with dead code optimization () 2020-05-19 07:00:53 -07:00
daniel
5b449b37d4
Update README.md 2020-05-08 20:14:14 -07:00
daniel
f97ab7f279
Update README.md 2020-05-08 19:22:08 -07:00
Ozan Hacıbekiroğlu
50379940e4
add shebang support ()
* add shebang support
2020-05-08 19:09:44 +02:00
Ozan Hacıbekiroğlu
3d7269c2c8
fix stdlib json string encoding () 2020-05-05 06:46:08 +02:00
daniel
b203f09032
add Yaegi to benchmark () 2020-05-02 15:27:20 -07:00
daniel
f4f70babbc
Update README.md () 2020-05-02 13:17:27 -07:00
Ozan Hacıbekiroğlu
d8b50efec5
add interoperability example () 2020-04-24 18:26:16 +02:00
daniel
3b53bc4f6d
Revert "remove callable args alloc ()" ()
This reverts commit b75bda7da7.
2020-03-15 11:19:02 -07:00
Ozan Hacıbekiroğlu
b75bda7da7
remove callable args alloc () 2020-03-15 17:45:40 +01:00
Sébastien Lacoste
b555842004
fix typo in objects doc () 2020-03-09 14:40:39 +01:00
Ozan HACIBEKİROĞLU
a053476c0b
fix markdownlint warnings () 2020-03-04 15:53:38 +01:00
Ozan HACIBEKİROĞLU
73b5e6256e
builtin splice ()
* added builtin splice

* fix splice

* remove splice negative index
2020-03-03 22:16:15 -08:00
Ozan HACIBEKİROĞLU
ac534053e8
builtin delete for maps and arrays ()
* added builtin delete function and unit tests

* added vm tests for builtin delete

* added doc for builtin delete

* update doc
2020-02-19 15:02:31 +01:00