Commit Graph

945 Commits

Author SHA1 Message Date
ValKmjolnir d4a9412947 optimize code structure 2021-10-16 21:08:57 +08:00
ValKmjolnir 1b240b293e update variable name in nasal_lexer 2021-10-16 14:07:55 +08:00
ValKmjolnir e41f728589 update 2021-10-15 22:21:57 +08:00
ValKmjolnir 577546763f change function name and cli format 2021-10-14 23:22:28 +08:00
ValKmjolnir 58ea303202 complete simple tutorial 2021-10-14 13:42:07 +08:00
ValKmjolnir 818685c48d change output format of information of bytecodes 2021-10-13 22:59:15 +08:00
ValKmjolnir 5d13261516 optimize source code 2021-10-12 18:26:10 +08:00
ValKmjolnir 56289b5d22 fully functional closure & add benchmark 2021-10-10 14:29:23 +08:00
ValKmjolnir 1733ac0573 vm_nil,vm_num changed to no-gcobject 2021-10-08 23:18:26 +08:00
ValKmjolnir d71b4f09e2 prepare for version 8.0 2021-10-08 15:32:18 +08:00
ValKmjolnir 13d40e886e update 2021-09-25 23:25:31 +08:00
Li Haokun 618ce59233
bad access bug fixed 2021-09-13 19:55:03 +08:00
Li Haokun 071d8bd1ce
update 2021-09-10 19:13:42 +08:00
Li Haokun c498d5c8c4
add fg constants & change int(), num() 2021-09-02 19:10:49 +08:00
Li Haokun 11971267dc
add math.nan math.inf 2021-09-01 19:15:32 +08:00
Li Haokun 418531a44a
add result.nas 2021-09-01 19:14:03 +08:00
Li Haokun 59dc0d1423
add isnan 2021-08-27 17:43:01 +08:00
Li Haokun 385f0af17e
nothing changed 2021-08-24 19:34:52 +08:00
Li Haokun ef9b781961
security holes fixed 2021-08-19 17:54:36 +08:00
ValKmjolnir 80cc8e9db7 closure bugs fixed 2021-08-17 01:18:35 +08:00
Li Haokun b2be386be8
update hexdump.nas 2021-08-13 15:10:20 +08:00
Li Haokun e4c598cae6
add hexdump.nas 2021-08-12 20:01:51 +08:00
Li Haokun 5fe6681b0d
update lexer 2021-08-12 19:00:17 +08:00
Li Haokun 35fc848672
fully functional closure 2021-08-11 14:54:17 +08:00
Li Haokun e3f3bd7387
update readme 2021-08-10 17:55:49 +08:00
ValKmjolnir 638ec1c3a3 use same indentation 2021-08-09 21:30:18 +08:00
Li Haokun 90ac468aa9
update 2021-08-09 19:13:39 +08:00
ValKmjolnir 65dfef0a33 update 2021-08-09 01:02:27 +08:00
Li Haokun 76a2548e95
update 2021-08-06 18:57:06 +08:00
Li Haokun 40b690b67b
update 2021-08-05 19:02:41 +08:00
Li Haokun 2b17f3d702
update debug info 2021-08-04 14:32:56 +08:00
ValKmjolnir 5b6c78783e update README 2021-08-04 00:03:49 +08:00
Li Haokun fa618eb97f
variables can be used before definition
change program to command line
change trace back info
change print function of nasal_vec and nasal_hash
2021-08-03 18:55:11 +08:00
ValKmjolnir d0616ef028 update 2021-08-01 22:37:42 +08:00
ValKmjolnir 91771297d3 add test file 2021-08-01 22:34:02 +08:00
ValKmjolnir 4e1a3c5f2d syntax bug fixed
syntax like:
var f=func(){}
(var a,b,c)=(1,2,3);
will be incorrectly recognized like:
var f=func(){}(var a,b,c)

this bug is fixed now.
2021-08-01 02:11:27 +08:00
ValKmjolnir df634cb1b2 update readme:difference between this and andy's interpreter 2021-08-01 01:54:14 +08:00
Li Haokun aa797142d1
update parser
one bug found, waiting to be fixed
2021-07-28 18:22:40 +08:00
Li Haokun 816be43a98
update 2021-07-24 19:59:56 +08:00
Li Haokun 9ebabfe737
fixed bug in nasal_parse 2021-07-21 17:38:11 +08:00
ValKmjolnir 884b56ac09 bug fixed & raw string print 2021-07-21 00:20:25 +08:00
Li Haokun 61677101e4
show vm stack top's info when error occurs 2021-07-20 19:21:05 +08:00
Li Haokun 7a93f5b89b
update 2021-07-19 17:04:45 +08:00
Li Haokun 9fe7a86a3b
add trace back info 2021-07-16 17:18:13 +08:00
ValKmjolnir 9da029b8fe prepare for debugger 2021-07-16 02:17:53 +08:00
ValKmjolnir 8b8e72c879 update 2021-07-14 01:24:15 +08:00
ValKmjolnir 590c595522 delete slice_stack 2021-07-07 14:46:46 +08:00
ValKmjolnir 57d6bcdc52 add const compare instructions 2021-07-03 15:22:23 +08:00
ValKmjolnir 0b2fe61e6e add instruction & changes in codegen
add some instructions that execute const values.
the first symbol called in assignment will use op_load instead of op_meq,op_pop to assign.
2021-06-29 17:18:05 +08:00
ValKmjolnir 706659ba3d change instruction dispatch to computed-goto
bug fixed
prepare for version 7.0
2021-06-26 14:53:10 +08:00