Commit Graph

  • e846e51175 add native function: srand, values, find. ValKmjolnir 2022-04-05 22:15:05 +08:00
  • 399b2f0ce9 bug fixed & add systime, finished vecindex ValKmjolnir 2022-04-04 19:08:48 +08:00
  • aed5e27409 bug fix & optimize test code & add lib function: subvec, floor, abs, isfunc, isghost, isint, isnum, isscalar, isstr, isvec, vecindex(unfinished) ValKmjolnir 2022-04-04 18:38:25 +08:00
  • a2b51fe212 optimize libmd5.nas & test/md5.nas ValKmjolnir 2022-04-03 18:10:00 +08:00
  • 92b684624d change module/makefile and test/md5compare.nas ValKmjolnir 2022-04-01 22:52:04 +08:00
  • 83a8632e8e update test/md5compare.nas & optimize test/md5.nas ValKmjolnir 2022-03-31 19:31:00 +08:00
  • 41b5304712 update test/md5compare.nas ValKmjolnir 2022-03-30 21:42:30 +08:00
  • c5a12ade5c update md5compare.nas ValKmjolnir 2022-03-29 22:54:17 +08:00
  • 7a939b417d fix bug in test/md5.nas & add test file md5compare.nas ValKmjolnir 2022-03-29 22:36:28 +08:00
  • dd7740f1fd update test/md5.nas(still has bug) & add libmd5 in module(written in C++) ValKmjolnir 2022-03-28 17:14:11 +08:00
  • 617ad03d33 add math.pow ValKmjolnir 2022-03-27 16:14:55 +08:00
  • b66ebbef4b fix bytecode output format bug ValKmjolnir 2022-03-27 13:10:35 +08:00
  • 7f22b25909 update README.md ValKmjolnir 2022-03-27 01:36:38 +08:00
  • 86f6296268 change opcode print format ValKmjolnir 2022-03-27 01:20:17 +08:00
  • cf722fd98c fix bug: windows ps/cmd output unicode in bytecodes abnormally. ValKmjolnir 2022-03-23 22:54:07 +08:00
  • 1dd3fd445c add test/snake.nas ValKmjolnir 2022-03-20 22:08:11 +08:00
  • 27e25f84ec update main.cpp and bug fix ValKmjolnir 2022-03-20 18:28:45 +08:00
  • e6457651d3 add unix.waitpid ValKmjolnir 2022-03-16 18:44:38 +08:00
  • c4d52a88cd update docs & fix bug in nasal_builtin.h ValKmjolnir 2022-03-16 15:30:34 +08:00
  • 9bcad59e45 change enum obj_type to nasal_obj::obj_type ValKmjolnir 2022-03-15 22:51:14 +08:00
  • 9a099f66cb update docs ValKmjolnir 2022-03-14 20:29:49 +08:00
  • b79d60fab5 add destructors for obj_file, obj_dylib, obj_dir & bug fix ValKmjolnir 2022-03-13 00:11:50 +08:00
  • 82e9e97a26 add destructor for obj_file & change arguments in test/tetris.nas ValKmjolnir 2022-03-12 23:37:16 +08:00
  • 6a1338bb23 update test/tetris.nas ValKmjolnir 2022-03-11 23:42:09 +08:00
  • 3b8a092f36 fix bug in test/json.nas ValKmjolnir 2022-03-11 15:26:38 +08:00
  • 3d86a32b12 update fully functional test/json.nas ValKmjolnir 2022-03-11 15:11:24 +08:00
  • f26719e1d3 visual update ValKmjolnir 2022-03-10 16:05:49 +08:00
  • e54ef9620f change nasal_ref value option functions' output types from pointers to references ValKmjolnir 2022-03-09 22:54:54 +08:00
  • d8156e839b add unix.fork&unix.pipe(do not work on windows platform) ValKmjolnir 2022-03-09 19:03:12 +08:00
  • 61666d275d delete lstk&fstk, store local address and function on stack and in vm registers ValKmjolnir 2022-03-08 17:30:40 +08:00
  • 99f595e16f update num->string algorithm, now the to_string will output strings with no tailing zeros ValKmjolnir 2022-03-08 13:40:27 +08:00
  • debe32b187 safer stl/module.nas & add stl/file.nas encapsulated from lib.nas/io ValKmjolnir 2022-03-06 15:17:39 +08:00
  • ca9b8581b4 add module.nas to safely use dylib ValKmjolnir 2022-03-05 21:52:29 +08:00
  • a0b341deb5 try fix bug 'use of undeclared identifier 'environ'' on MacOS ValKmjolnir 2022-03-05 19:24:33 +08:00
  • d3df356299 add unix.environ() & use LPCWSTR in dylib.dlopen on Windows platform ValKmjolnir 2022-03-05 19:15:52 +08:00
  • cd808a5e6d update detailed-info ValKmjolnir 2022-03-03 19:00:23 +08:00
  • 40f61a9dd4 fix bug of upval_state ValKmjolnir 2022-03-02 19:28:17 +08:00
  • f312250d27 update ValKmjolnir 2022-03-01 14:36:05 +08:00
  • 3fac8aa665 fix bug in test/tetris.nas ValKmjolnir 2022-02-25 23:34:02 +08:00
  • 243aafd417 fix bug of -o not working. ValKmjolnir 2022-02-23 21:56:45 +08:00
  • 6bc03601d9 update test/tetris.nas ValKmjolnir 2022-02-23 01:09:31 +08:00
  • f05acaecc7 fix bug in libkey and test/tetris.nas ValKmjolnir 2022-02-22 18:01:49 +08:00
  • 9456a903d7 finish tetris.nas ValKmjolnir 2022-02-21 17:10:13 +08:00
  • 984deed883 finish basic functions of tetris ValKmjolnir 2022-02-21 00:47:32 +08:00
  • 557cb2ebcf finish map drawing in test/tetris.nas ValKmjolnir 2022-02-20 17:58:13 +08:00
  • 9c055a9a23 add new third-lib libkey that includes function: kbhit,getch,nonblock ValKmjolnir 2022-02-19 16:55:54 +08:00
  • 13a09343e6 update README.md ValKmjolnir 2022-02-18 15:59:27 +08:00
  • 8c67e04cc4 update test file ValKmjolnir 2022-02-18 15:36:34 +08:00
  • e77bb73a82 add special character \e. ValKmjolnir 2022-02-18 01:58:49 +08:00
  • 05fc5db337 change parameter name in native function split. ValKmjolnir 2022-02-17 23:34:58 +08:00
  • a4738e8c7d delete operand op_nop ValKmjolnir 2022-02-16 23:27:22 +08:00
  • 5f6051e333 change tutorial's place in README.md ValKmjolnir 2022-02-15 23:42:17 +08:00
  • 51afe3dacd fixed bug when -O0 the program crashes with code 01. ValKmjolnir 2022-02-14 17:40:19 +08:00
  • 0291908675 update README.md ValKmjolnir 2022-02-14 17:29:26 +08:00
  • 5fba784d05 add new gc type vm_upval ValKmjolnir 2022-02-13 22:40:54 +08:00
  • 9139e34c0b update README & bug fixed ValKmjolnir 2022-02-13 16:10:02 +08:00
  • e7f503fae1 now local values are stored on stack. upvalue is generated when creating a new function in local scope. ValKmjolnir 2022-02-12 23:12:30 +08:00
  • 980350d70a prepare for function-call optimization v8.0 ValKmjolnir 2022-02-12 18:03:50 +08:00
  • 0ccd3c9bd0 update test/calc.nas & print function of nasal_vec/nasal_hash ValKmjolnir 2022-02-11 17:04:27 +08:00
  • 3e7ba4d774 little update ValKmjolnir 2022-02-10 22:20:18 +08:00
  • a176022840 add notes in lib.nas & add runtime.gc() & add total instruction count in '-o'. ValKmjolnir 2022-02-09 15:53:09 +08:00
  • 24a1e39ad3 add garbage collector and memory allocator info. use '-d' to activate this function. ValKmjolnir 2022-02-08 23:40:52 +08:00
  • a09c6ae2f9 update/optimize test files ValKmjolnir 2022-02-07 23:41:50 +08:00
  • 2a85e92d4a optimize test file & little update. ValKmjolnir 2022-02-06 19:55:45 +08:00
  • 92646840e4 reuse codes in nasal_vec::print and nasal_hash::print ValKmjolnir 2022-02-05 23:55:56 +08:00
  • c55ce758ed change increment arguments to a more efficiency level & change gc.nil, gc.one, gc.zero to constant nil, one, zero ValKmjolnir 2022-02-04 01:51:30 +08:00
  • aa301aefc3 change increment argument in nasal_gc, because new vm doesn't need to alloc new objects frequently. ValKmjolnir 2022-02-03 22:43:51 +08:00
  • d6d90ab7c8 change 'global' & 'local' in codegen to std::unordered_map & std::vector<std::unordered_map>> ValKmjolnir 2022-02-02 23:52:00 +08:00
  • bf780514e6 add constant string calculation in optimizer ValKmjolnir 2022-02-01 21:20:36 +08:00
  • eaa54035ff change name of enum:ast_hashmember->ast_pair, ast_new_iter->ast_iter ValKmjolnir 2022-01-31 17:22:44 +08:00
  • baa4f5a258 change error info of native function __builtin_import ValKmjolnir 2022-01-31 14:48:51 +08:00
  • df24db5b58 optimize nasal_import::check_import ValKmjolnir 2022-01-30 23:26:30 +08:00
  • 4def93b4ad bug fixed in nasal_vec::print and nasal_hash::print ValKmjolnir 2022-01-29 19:51:43 +08:00
  • 0a407437a4 change native function num() ValKmjolnir 2022-01-27 21:41:06 +08:00
  • 05ab4640da add notes of some native functions in lib.nas ValKmjolnir 2022-01-26 23:51:25 +08:00
  • b92eb4b089 update README.md ValKmjolnir 2022-01-25 15:02:57 +08:00
  • 5778d1e38d update new test data ValKmjolnir 2022-01-24 15:19:27 +08:00
  • 479e5a2c52 fix errors in README.md ValKmjolnir 2022-01-22 22:19:14 +08:00
  • 2f455c52c1 fix error in README.md ValKmjolnir 2022-01-22 22:09:00 +08:00
  • 78c1f9b7a9 add contents in README.md ValKmjolnir 2022-01-22 22:05:42 +08:00
  • c68b4c5947 add new option -op & --optimize to use optimizer | delete bytecode op_pone & op_pzero ValKmjolnir 2022-01-22 13:37:49 +08:00
  • 40344455e6 add optimizer optimizer now does one work: calculate const number before generating bytecode ValKmjolnir 2022-01-22 00:41:08 +08:00
  • 630c99c39a optimize codes ValKmjolnir 2022-01-16 22:48:00 +08:00
  • 46716620e3 add test file 'turingmachine.nas' & change output format of ast & bug fixed ValKmjolnir 2021-12-28 20:23:47 +08:00
  • 70a43c2f03 bug fixed ValKmjolnir 2021-12-25 15:56:08 +08:00
  • 1923fc74e4 update README.md ValKmjolnir 2021-12-23 21:46:53 +08:00
  • f0ae63bce5 lexer,parser,import,codegen use the same error module. ValKmjolnir 2021-12-23 21:15:50 +08:00
  • 30650bb64f update error info (except parser) ValKmjolnir 2021-12-23 14:09:54 +08:00
  • d87aef82b7 debug info now shows both source code and bytecode ValKmjolnir 2021-12-21 19:57:23 +08:00
  • e79d1eb8a4 add debugger function: break point & next step ValKmjolnir 2021-12-21 15:27:38 +08:00
  • 189d49fa4a add debugger framework ValKmjolnir 2021-12-20 21:33:22 +08:00
  • 6a543f2aa7 Merge pull request #7 from sidi762/master Li Haokun 2021-12-17 00:31:16 +08:00
  • c27c5b70ee little update ValKmjolnir 2021-12-16 23:53:13 +08:00
  • 0a246d2fc7 Merge branch 'ValKmjolnir:master' into master Sidi Liang 2021-12-13 08:49:45 +08:00
  • 0956a08bec Update c-cpp.yml Sidi Liang 2021-12-13 08:46:20 +08:00
  • 5a80258d20 bug fixed & add os.platform ValKmjolnir 2021-12-08 18:46:32 +08:00
  • 85bb502191 Merge pull request #6 from sidi762/master Li Haokun 2021-12-07 10:37:39 +08:00
  • ead49a657e Change the asset name to 'nasal' Sidi Liang 2021-12-06 23:00:25 +08:00
  • df5be35af8 Attempt to make nightly builds for macOS Sidi Liang 2021-12-06 22:55:18 +08:00
  • 19d5952210 Update c-cpp.yml Sidi Liang 2021-12-06 22:47:37 +08:00