ValKmjolnir
4b4489f833
🐛 fix bug that int() cannot convert numeric string
2022-09-12 22:45:35 +08:00
ValKmjolnir
4bdfa9cb61
🚀 import information output of dbg, vm and codegen
2022-09-11 17:22:00 +08:00
ValKmjolnir
b743f090ec
⚡ change parameter list of
2022-09-11 15:10:30 +08:00
ValKmjolnir
5b412153a3
⚡ optimize stl/sort.nas and test/calc.nas
2022-09-10 15:45:25 +08:00
ValKmjolnir
a76253412e
🐛 fix bug that word_collector.nas split some words incorrectly
2022-09-09 21:48:10 +08:00
ValKmjolnir
40e6c85657
📝 update test file & add new test file word_collector.nas
2022-09-09 01:00:09 +08:00
ValKmjolnir
1cd55895a5
🐛 bug fix: fix sigsegv when parsing [1,2,3][]=1;, will report expected index value
2022-09-05 01:23:37 +08:00
ValKmjolnir
0f59028c82
⚡ improve error output info generated by codegen.
2022-09-05 00:41:36 +08:00
ValKmjolnir
8d0eadaa74
📝 fix MSVC warning in nasal_builtin.h & improve error output.
2022-09-04 23:08:06 +08:00
ValKmjolnir
6cd88f4e45
🚀 add new stl file padding.nas and update test files.
2022-09-04 17:53:00 +08:00
ValKmjolnir
f70ce082fd
🎨 improve error log output format.
2022-09-02 02:04:03 +08:00
ValKmjolnir
28fc1eb850
📝 use bold font in test/watchdog.nas
2022-09-01 00:04:14 +08:00
ValKmjolnir
2da3be7fc4
🚀 change cpp standard to c++14 & add command line colorful info output.
...
and fix a bug that program may crash if there's an error when coroutine is running
2022-08-31 23:24:41 +08:00
ValKmjolnir
e61e596b2a
📝 diable warning C4566 in MSVC
2022-08-31 01:06:57 +08:00
ValKmjolnir
fb00ddc19a
🚀 add colorful error info print.
2022-08-31 00:56:19 +08:00
ValKmjolnir
4dfc4012df
🐛 fix bug that make test failed
2022-08-29 00:48:06 +08:00
ValKmjolnir
c7662af0fc
🚀 add lib function exit() and add test file watchdog.nas to run the nasal file when it is changed.
2022-08-27 18:12:32 +08:00
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