Commit Graph

49 Commits

Author SHA1 Message Date
Li Haokun 618ce59233
bad access bug fixed 2021-09-13 19:55:03 +08:00
ValKmjolnir 65dfef0a33 update 2021-08-09 01:02:27 +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
Li Haokun aa797142d1
update parser
one bug found, waiting to be fixed
2021-07-28 18:22:40 +08:00
Li Haokun 9ebabfe737
fixed bug in nasal_parse 2021-07-21 17:38:11 +08:00
Li Haokun 7a93f5b89b
update 2021-07-19 17:04:45 +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 3c9a10d710 avoid unnecessary deep copy by using rvalue ref
and test file update.
bug fixed in test/lexer.nas
2021-06-24 22:10:08 +08:00
ValKmjolnir fd57e9a47c performance optimization of vm/lex/parse/test 2021-06-24 00:26:26 +08:00
ValKmjolnir ab99d2d1ed change mcall to call->mcall&allow differen lvalue in assignment 2021-06-21 16:46:47 +08:00
Valk Richard Li ae0dae5956 update 2021-06-21 01:02:09 +08:00
Valk Richard Li 00c6e3b4fd nothing changed 2021-06-20 01:27:01 +08:00
Valk Richard Li dd144305da update test file 2021-06-14 00:27:00 +08:00
Valk Richard Li 4f3ddf803a add tips 2021-06-13 01:01:32 +08:00
Valk Richard Li 1ae47807eb Add command line parameters & chr supports extended ASCII 2021-06-11 15:16:06 +08:00
Valk Richard Li 3deea632f8 front end optimization&stack overflow prompt
change parameter type to avoid unnecessary copies of string.
change stack depth from 65536<<4 to 16+(65536<<2).
now you could know stack overflow when it happens
2021-06-07 23:53:43 +08:00
Valk Richard Li b25a1bc3f4 more efficient str2num 2021-06-05 20:42:58 +08:00
Valk Richard Li a68bf85f04 bug fixed
a gc bug which causes  fatal error.
add member value collect to make sure that nasal_val is not collected repeatedly.
use builtin_alloc in builtin function to avoid incorrect collection of value in use(gc_alloc).
change free_list to free_list[vm_type_size] to avoid too many calls of new/delete(but seems useless?)
but the most important thing is fixing this bug.
2021-05-31 19:10:59 +08:00
Valk Richard Li a463af53b7 add license & other changes
parser recognizes syntax errors more accurately.
change some for loop to standard c++11 for(auto iter:obj)
add MIT license
change info in README.md
2021-05-04 17:39:24 +08:00
Valk Richard Li 6adb991c04 parser reports syntax error accurately
still need improvement
2021-05-04 01:13:53 +08:00
Valk Richard Li 125fc8a9fe bug fixed & test file changes
compare operators now run more efficiently.
2021-03-31 20:59:13 +08:00
Valk Richard Li 144e6f45da gc changed to mark-sweep 2021-03-27 01:08:05 +08:00
Valk Richard Li a421470715 change map to unordered_map 2021-03-01 15:54:58 +08:00
Valk Richard Li 80683c381f bug fixed 2021-02-13 23:57:53 +08:00
Valk Richard Li e2ee9cff4c update 2021-02-13 14:37:21 +08:00
Valk Richard Li 996ac59c79 update parser to LL(1) 2021-02-13 13:28:20 +08:00
Valk Richard Li 944f713ee9 update 2021-02-13 11:09:31 +08:00
Valk Richard Li 7329c70492 identifiers' name changed 2021-02-12 23:48:51 +08:00
Valk Richard Li 3be50116fa update 2021-02-10 00:12:22 +08:00
Valk Richard Li bb746dfbfb update 2021-01-23 17:57:05 +08:00
Valk Richard Li 9474ac9ef0 update & bug fixed 2021-01-05 23:17:32 +08:00
Valk Richard Li b862aa91eb update 2021-01-05 01:55:17 +08:00
Valk Richard Li 05800fe518 bug fixed 2020-12-25 13:22:57 +08:00
Valk Richard Li 4617eb8f17 update 2020-12-19 23:47:04 +08:00
Valk Richard Li fed1e20085 update 2020-12-19 21:02:02 +08:00
Valk Richard Li 7c026b62b7 update 2020-12-15 13:00:24 +08:00
Valk Richard Li 73c9f98f4f update 2020-12-14 00:10:31 +08:00
Valk Richard Li 35cd1bd1e2 update 2020-12-06 21:07:40 +08:00
Valk Richard Li fce34c12b3 update 2020-11-29 00:54:54 +08:00
Valk Richard Li ffdc8993c4 update 2020-11-26 00:03:05 +08:00
Valk Richard Li ab28657c78 update 2020-11-25 00:05:15 +08:00
Valk Richard Li f811368491 update 2020-11-20 19:15:12 +08:00
Valk Richard Li 4a5083f5cf update 2020-11-19 23:42:51 +08:00
Valk Richard Li 5aabbd8d42 update 2020-11-13 00:02:12 +08:00
Valk Richard Li 2b4b1af72c update 2020-11-09 12:54:46 +08:00
Valk Richard Li fd8d3acfed update 2020-11-09 00:26:15 +08:00
Valk Richard Li 67ae3505fb update 2020-10-24 12:16:55 +08:00
Valk Richard Li e8341c7b06 change project structure
version 3.0
2020-10-23 14:53:04 +08:00