ValKmjolnir
6b4116aece
add unix.time unix.chdir unix.sleep unix.getcwd unix.getenv
2021-10-29 19:52:49 +08:00
ValKmjolnir
a7b1851967
optimize code structure
2021-10-16 21:08:57 +08:00
ValKmjolnir
645a652830
change function name and cli format
2021-10-14 23:22:28 +08:00
ValKmjolnir
321a762612
complete simple tutorial
2021-10-14 13:42:07 +08:00
ValKmjolnir
414c9c7487
change output format of information of bytecodes
2021-10-13 22:59:15 +08:00
ValKmjolnir
3ab5f00097
optimize source code
2021-10-12 18:26:10 +08:00
ValKmjolnir
42a330cda7
vm_nil,vm_num changed to no-gcobject
2021-10-08 23:18:26 +08:00
Li Haokun
331e0e1728
fully functional closure
2021-08-11 14:54:17 +08:00
Li Haokun
bf07faf2ab
update readme
2021-08-10 17:55:49 +08:00
ValKmjolnir
ed535509a0
update README
2021-08-04 00:03:49 +08:00
Li Haokun
a6fe835ed4
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
a1adb5b948
add test file
2021-08-01 22:34:02 +08:00
ValKmjolnir
ead5ca32b3
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
4c2a4ca091
update readme:difference between this and andy's interpreter
2021-08-01 01:54:14 +08:00
Li Haokun
1a180ae01a
update
2021-07-19 17:04:45 +08:00
Li Haokun
d9d7a1edfc
add trace back info
2021-07-16 17:18:13 +08:00
ValKmjolnir
81131520d7
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
ee9afe1cf1
change instruction dispatch to computed-goto
...
bug fixed
prepare for version 7.0
2021-06-26 14:53:10 +08:00
ValKmjolnir
a734b99beb
performance optimization of vm/lex/parse/test
2021-06-24 00:26:26 +08:00
ValKmjolnir
f0565c7de6
change mcall to call->mcall&allow differen lvalue in assignment
2021-06-21 16:46:47 +08:00
Valk Richard Li
40a1189b18
nothing changed
2021-06-20 01:27:01 +08:00
Valk Richard Li
b9aa7f5db2
add statistical information
2021-06-19 00:32:10 +08:00
Valk Richard Li
411c2e5c4c
add tips
2021-06-13 01:01:32 +08:00
Valk Richard Li
1d3c4b0843
fixed an error in README
2021-06-12 01:23:06 +08:00
Valk Richard Li
19517e7bfc
Update README.md
2021-06-11 15:28:25 +08:00
Valk Richard Li
1cd627d9c7
Add command line parameters & chr supports extended ASCII
2021-06-11 15:16:06 +08:00
Valk Richard Li
166fe32839
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
27ab63024c
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
d149d7ad77
Update README.md
2021-06-03 21:59:15 +08:00
Valk Richard Li
b2e85de7a7
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
20cfbfecd9
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
6651fccbe8
parser reports syntax error accurately
...
still need improvement
2021-05-04 01:13:53 +08:00
Valk Richard Li
2405bada81
change scope from unordered_map to vector
2021-04-19 19:12:41 +08:00
Valk Richard Li
0af48f7f3f
add test file & update README
2021-04-04 23:35:13 +08:00
Valk Richard Li
d51465cc82
change function of vapp & README update
2021-04-03 23:47:14 +08:00
Valk Richard Li
a990fb606a
gc changed to mark-sweep
2021-03-27 01:08:05 +08:00
Valk Richard Li
f3370ef0f7
change map to unordered_map
2021-03-01 15:54:58 +08:00
Valk Richard Li
a0fc1b4a61
add tutorial of how to add built-in function
2021-02-23 23:33:01 +08:00
Valk Richard Li
e1beb1efe3
change identifier name to avoid misunderstanding
2021-02-15 15:29:55 +08:00
Valk Richard Li
92aaef55d2
update parser to LL(1)
2021-02-13 13:28:20 +08:00
Valk Richard Li
3b986fd845
update
2021-01-23 19:21:37 +08:00
Valk Richard Li
dff899061a
preparation for v5.0
2020-12-19 01:26:15 +08:00
Valk Richard Li
6f3b0549f3
Update README.md
2020-12-12 20:13:23 +08:00
Valk Richard Li
dfbd853f66
update
2020-11-20 00:18:17 +08:00
Valk Richard Li
84f09cb932
change project structure
...
version 3.0
2020-10-23 14:53:04 +08:00
Valk Richard Li
5b7dc8d41d
Update README.md
2020-09-14 13:53:24 +08:00
Valk Richard Li
21b933fa19
Update README.md
2020-09-14 13:52:25 +08:00
Valk Richard Li
9e6d2fe2a5
Update README.md
2020-09-13 16:40:23 +08:00
Valk Richard Li
583e5c9143
Update README.md
2020-06-25 14:19:49 +08:00
Valk Richard Li
fc457c082c
Update README.md
2020-06-08 17:53:21 +08:00