Commit Graph

1208 Commits

Author SHA1 Message Date
ValKmjolnir
eb0f5ffcc2 📝 update stl/file and test files. 2022-08-27 17:26:01 +08:00
ValKmjolnir
99494c067c 🔥 delete --opcnt and replace the function of -o by --optimize. 2022-08-25 19:54:03 +08:00
ValKmjolnir
47f0a4cf40 delete unnecessary prefix in die("") 2022-08-25 01:16:17 +08:00
ValKmjolnir
6318f7e9e8 optimize header file, now modules could generate smaller dynamic libs. 2022-08-24 22:08:47 +08:00
ValKmjolnir
d1f705998e 🚀 change indentation of nasal_ast::print & add new function
`nasal_ast::tree`.
2022-08-22 22:35:53 +08:00
ValKmjolnir
a82ffe8b46 📝 add compilation time & update test/ppmgen.nas 2022-08-21 00:26:16 +08:00
ValKmjolnir
17f545b8d8 optimize str2num 2022-08-20 02:01:39 +08:00
ValKmjolnir
325a7236e7 several updates.
1. merge `--chkpath` `-cp` with `-d`

2. complete test/ppmgen.nas

3. update comments about why we don't use `atof` to convert string to
number

4. update .gitignore
2022-08-19 23:25:46 +08:00
ValKmjolnir
5d67648d06 update doc & notes, optimize code 2022-08-18 20:41:33 +08:00
ValKmjolnir
81daeca4cb 📝 add test file ppmgen.nas 2022-08-17 21:09:22 +08:00
ValKmjolnir
de7c7b81cc 📝 update test/ascii-art.nas v10.0 2022-08-16 20:41:05 +08:00
ValKmjolnir
e92134c5e8 🚀 add [[noreturn]] 2022-08-16 01:40:22 +08:00
ValKmjolnir
88041d0903 reduce unnecessary errors & make io.read safer 2022-08-11 01:48:02 +08:00
ValKmjolnir
6f19398f90 🐛 fix compilation error of modules on macOS platform 2022-08-10 19:48:01 +08:00
ValKmjolnir
d65b0b327f reduce unnecessary code & optimize code 2022-08-10 01:44:47 +08:00
ValKmjolnir
04281f59f2 reduce unnecessary native-function errors. 2022-08-09 01:34:47 +08:00
ValKmjolnir
e51ba92f30 🚀 optimize code 2022-08-08 22:10:51 +08:00
ValKmjolnir
eff98fa9b4 🚀 optimize stl/stack.nas, test/calc.nas & io.fin now returns empty string when cannot open file 2022-08-07 00:35:55 +08:00
ValKmjolnir
e6fb388701 📝 little change 2022-08-05 23:22:32 +08:00
ValKmjolnir
83c8d327bb 🐛 fix builtin_err in module to nas_err 2022-08-04 21:20:27 +08:00
ValKmjolnir
db1a0c92a2 reduce code size 2022-08-03 23:03:49 +08:00
ValKmjolnir
1be6c55512 optimize code & shrink code size 2022-08-02 22:03:28 +08:00
ValKmjolnir
d2b63b394e 📝 optimize codes 2022-08-01 22:51:19 +08:00
ValKmjolnir
13ddfa5050 📝 delete unnecessary code & change test file. 2022-07-31 19:26:13 +08:00
ValKmjolnir
4ab8a730a6 📝 change int in code to i32, optimize code. 2022-07-31 02:19:29 +08:00
ValKmjolnir
9c779b871f optimize code & chdir will not trigger crash if failed to call 2022-07-30 19:17:33 +08:00
ValKmjolnir
63452ff224 🚀 input now can choose std::getline to read one line. 2022-07-30 01:31:56 +08:00
ValKmjolnir
172c1d60f9 🐛 fix bug that dylib.dlopen cannot load dynamic lib in local dir. 2022-07-29 23:30:15 +08:00
ValKmjolnir
ca6cb5daae 🐛 fix bug of incorrectly searching paths of lib.nas and dynamic libs.
`dylib.dlopen` now only needs file name of dynamic lib, not the real path.
2022-07-29 22:49:50 +08:00
ValKmjolnir
fb37283be0 🚀 move fg constants to stl/fg_env.nas, add io.exists. now dlopen and import can search file in PATH. 2022-07-28 21:44:55 +08:00
ValKmjolnir
fc1d45d4e8 📝 add doc to help you create visual studio project. 2022-07-27 19:31:14 +08:00
ValKmjolnir
76aca0d528 correct types in nasal_codegen.h 2022-07-27 00:59:35 +08:00
ValKmjolnir
99e16c1c43 optimize nasal_parser 2022-07-26 20:04:57 +08:00
ValKmjolnir
d350d94bc5 🚀 add new default bar in stl.process_bar 2022-07-25 22:15:40 +08:00
ValKmjolnir
8ca74aa39d 📝 update README 2022-07-25 20:09:41 +08:00
ValKmjolnir
fa8a568f72 🚀 shrink stack size & optimize nasal_vm::traceback 2022-07-25 00:23:07 +08:00
ValKmjolnir
a8d87f66c0 📝 fix error in README_zh.md 2022-07-24 17:16:44 +08:00
ValKmjolnir
7924511ca2 📝 fix error in README.md 2022-07-24 17:15:44 +08:00
ValKmjolnir
23a6dfa969 📝 change README.md & README_zh.md 2022-07-24 17:05:36 +08:00
ValKmjolnir
5ac4d3eae5 📝 update README.md & README_zh.md 2022-07-24 13:01:42 +08:00
ValKmjolnir
60e1eac07d 📝 update docs 2022-07-24 00:10:26 +08:00
ValKmjolnir
07e495842d 📝 split README.md to doc/benchmark.md doc/dev.md doc/dev_zh.md 2022-07-23 23:04:31 +08:00
ValKmjolnir
bbfe3fff9a 📝 doc fix 2022-07-23 17:21:44 +08:00
ValKmjolnir
49a7ed28e9 🚀 change std::string to string, change identifiers' name, -o is now a function available in debug mode. 2022-07-23 17:00:25 +08:00
ValKmjolnir
65fe7daff6 📝 change name of used types 2022-07-23 12:35:21 +08:00
ValKmjolnir
0d750ca685 optimize op_para and op_deft: change hashmap<string,u64> to hashmap<u32,u32> 2022-07-23 12:02:41 +08:00
ValKmjolnir
a3c3c34565 change some branches 2022-07-22 22:24:48 +08:00
ValKmjolnir
7a9ce29710 🚀 change std::cout to std::clog to put some log info 2022-07-21 23:16:16 +08:00
ValKmjolnir
bec589b85f 📝 shrink size of README.md 2022-07-20 22:22:50 +08:00
ValKmjolnir
1a376c7ebd 📝 change README.md 2022-07-20 00:06:00 +08:00