Commit Graph

1176 Commits

Author SHA1 Message Date
ValKmjolnir d87aef82b7 debug info now shows both source code and bytecode 2021-12-21 19:57:23 +08:00
ValKmjolnir e79d1eb8a4 add debugger function: break point & next step 2021-12-21 15:27:38 +08:00
ValKmjolnir 189d49fa4a add debugger framework
with function:backtrace,run,help,show global/local/upvalue,exit
2021-12-20 21:33:22 +08:00
Li Haokun 6a543f2aa7
Merge pull request #7 from sidi762/master
Update c-cpp.yml to solve failures
2021-12-17 00:31:16 +08:00
ValKmjolnir c27c5b70ee little update 2021-12-16 23:53:13 +08:00
Sidi Liang 0a246d2fc7
Merge branch 'ValKmjolnir:master' into master 2021-12-13 08:49:45 +08:00
Sidi Liang 0956a08bec
Update c-cpp.yml 2021-12-13 08:46:20 +08:00
ValKmjolnir 5a80258d20 bug fixed & add os.platform 2021-12-08 18:46:32 +08:00
Li Haokun 85bb502191
Merge pull request #6 from sidi762/master
New Github Action for nightly builds on macOS
2021-12-07 10:37:39 +08:00
Sidi Liang ead49a657e
Change the asset name to 'nasal' 2021-12-06 23:00:25 +08:00
Sidi Liang df5be35af8
Attempt to make nightly builds for macOS 2021-12-06 22:55:18 +08:00
Sidi Liang 19d5952210
Update c-cpp.yml 2021-12-06 22:47:37 +08:00
Sidi Liang afd87da5e7
Try out GitHub Actions 2021-12-06 22:36:08 +08:00
ValKmjolnir 9861ecd03e add dylib.dlopen dylib.dlsym dylib.dlclose dylib.dlcall
now you could add your own modules into nasal without changing the source code!
2021-12-03 19:31:03 +08:00
ValKmjolnir aa191a9feb delete ret stack/ add math.lg
now return address is stored on value stack
2021-12-02 22:23:22 +08:00
ValKmjolnir b8ef3cf6b6 delete op_cntpop & counter stack
now the iterator will be type vm_cnt and be stored on value stack.
2021-11-25 18:13:31 +08:00
ValKmjolnir 0a8655eb4d fixed bug of in_foreach and in_forindex 2021-11-22 14:24:28 +08:00
ValKmjolnir 52b49edbcf add unix.isdir and unix.isfile 2021-11-15 22:47:52 +08:00
ValKmjolnir 6a35c58df4 2 bugs fixed:
empty string will be true in conditional expressions,but now it is false(and string that is not empty and is not numerable will be true)

foreach(var i;func(){return []}()); will cause sigsegv because codegen generates error op_pop and op_cntpop,now the counter in_foreach and in_forindex change after generating
foreach/forindex expression before block generation.
2021-11-14 23:05:34 +08:00
ValKmjolnir cd08b2d1bb change code structure 2021-11-02 22:44:42 +08:00
ValKmjolnir f8e2918561 add unix.opendir unix.readdir unix.closedir 2021-10-31 23:11:04 +08:00
ValKmjolnir e4ea34db51 add unix.time unix.chdir unix.sleep unix.getcwd unix.getenv 2021-10-29 19:52:49 +08:00
ValKmjolnir 4bfce37f40 add bits lib 2021-10-28 21:49:08 +08:00
ValKmjolnir fd0d836c03 add io lib & bug fixed 2021-10-27 23:05:25 +08:00
ValKmjolnir 183446d32a bug fixed 2021-10-26 22:34:02 +08:00
ValKmjolnir 540aeb73f4 optimize nasal_ast and fix bug in opr_slc2 2021-10-20 20:54:23 +08:00
ValKmjolnir 4f0acc4d63 fix dynamic para error 2021-10-18 22:05:31 +08:00
ValKmjolnir 56280db2c7 fix sigsegv error 2021-10-18 21:50:25 +08:00
ValKmjolnir 885b57cd52 add upvalue info into detail crash info 2021-10-18 19:59:41 +08:00
ValKmjolnir bbee31ea55 add detail crash info 2021-10-17 22:57:45 +08:00
ValKmjolnir 1bfa7d2638 update 2021-10-16 23:36:43 +08:00
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