Commit Graph

87 Commits

Author SHA1 Message Date
Li Haokun 35fc848672
fully functional closure 2021-08-11 14:54:17 +08:00
Li Haokun e3f3bd7387
update readme 2021-08-10 17:55:49 +08:00
ValKmjolnir 5b6c78783e update README 2021-08-04 00:03:49 +08:00
Li Haokun fa618eb97f
variables can be used before definition
change program to command line
change trace back info
change print function of nasal_vec and nasal_hash
2021-08-03 18:55:11 +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
ValKmjolnir df634cb1b2 update readme:difference between this and andy's interpreter 2021-08-01 01:54:14 +08:00
Li Haokun 7a93f5b89b
update 2021-07-19 17:04:45 +08:00
Li Haokun 9fe7a86a3b
add trace back info 2021-07-16 17:18:13 +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 706659ba3d change instruction dispatch to computed-goto
bug fixed
prepare for version 7.0
2021-06-26 14:53:10 +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 00c6e3b4fd nothing changed 2021-06-20 01:27:01 +08:00
Valk Richard Li cdf7b92a8e add statistical information 2021-06-19 00:32:10 +08:00
Valk Richard Li 4f3ddf803a add tips 2021-06-13 01:01:32 +08:00
Valk Richard Li de305d26ad fixed an error in README 2021-06-12 01:23:06 +08:00
Valk Richard Li 9f30f45774 Update README.md 2021-06-11 15:28:25 +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 fd7677f94f update README.md(some history of this project)
AND a question of admins' brains of gitee
2021-06-05 17:15:07 +08:00
Valk Richard Li 2e31a70406 Update README.md 2021-06-03 21:59:15 +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 c5f4736984 change scope from unordered_map to vector 2021-04-19 19:12:41 +08:00
Valk Richard Li a7d6518bff add test file & update README 2021-04-04 23:35:13 +08:00
Valk Richard Li 0700ce14f7 change function of vapp & README update 2021-04-03 23:47:14 +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 1c40cca673 add tutorial of how to add built-in function 2021-02-23 23:33:01 +08:00
Valk Richard Li 767711c93a change identifier name to avoid misunderstanding 2021-02-15 15:29:55 +08:00
Valk Richard Li 996ac59c79 update parser to LL(1) 2021-02-13 13:28:20 +08:00
Valk Richard Li 125d6d3a7d update 2021-01-23 19:21:37 +08:00
Valk Richard Li 9f30440286 preparation for v5.0 2020-12-19 01:26:15 +08:00
Valk Richard Li 09e5b3fa90 Update README.md 2020-12-12 20:13:23 +08:00
Valk Richard Li e9fd953273 update 2020-11-20 00:18:17 +08:00
Valk Richard Li e8341c7b06 change project structure
version 3.0
2020-10-23 14:53:04 +08:00
Valk Richard Li 2859467d71
Update README.md 2020-09-14 13:53:24 +08:00
Valk Richard Li 4a9b22952a
Update README.md 2020-09-14 13:52:25 +08:00
Valk Richard Li e4167f0700
Update README.md 2020-09-13 16:40:23 +08:00
Valk Richard Li 1bbf102985
Update README.md 2020-06-25 14:19:49 +08:00
Valk Richard Li 57f99e9af3
Update README.md 2020-06-08 17:53:21 +08:00
Valk Richard Li 6cb334c87a
Update README.md 2020-06-01 14:57:37 +08:00
Valk Richard Li 05d0fa3d1b
Update README.md 2020-06-01 01:28:49 +08:00
Valk Richard Li c0727562b6
Update README.md 2020-06-01 01:21:27 +08:00
Valk Richard Li 710fff48dd
Update README.md 2020-03-09 15:58:34 +08:00
Valk Richard Li 5d60c9df8f
Update README.md 2020-02-28 17:55:02 +08:00
Valk Richard Li 38e0fdb5e8
update 2020-01-29 21:34:52 +08:00
Valk Richard Li b56ec336cc
update 2020-01-29 20:19:36 +08:00