Yuichi Nishiwaki
|
43071d2c84
|
refactoring. use boxes.
|
2014-03-31 22:03:03 +09:00 |
Yuichi Nishiwaki
|
01ed285d40
|
fix #36
|
2014-03-31 21:59:36 +09:00 |
Yuichi Nishiwaki
|
2151640331
|
add native box API
|
2014-03-31 21:50:08 +09:00 |
Yuichi Nishiwaki
|
3e8d64fdb7
|
initial regexp support
|
2014-03-31 20:43:36 +09:00 |
Yuichi Nishiwaki
|
4549625182
|
cleanup
|
2014-03-31 08:27:04 +09:00 |
Yuichi Nishiwaki
|
d91ae885b6
|
add fixed-arity pic_values function
|
2014-03-31 08:13:06 +09:00 |
Yuichi Nishiwaki
|
812ec3a87b
|
fix #84
|
2014-03-30 14:45:40 +09:00 |
Yuichi Nishiwaki
|
c3b737037a
|
refactor native_stack_length
|
2014-03-30 14:45:24 +09:00 |
Yuichi Nishiwaki
|
a1101296aa
|
refactor pic_gensym
|
2014-03-29 20:53:20 +09:00 |
Yuichi Nishiwaki
|
d8c182bc69
|
add user-defined data type API
|
2014-03-29 20:42:06 +09:00 |
Yuichi Nishiwaki
|
38c4e7e6de
|
implemented simple backtrace
|
2014-03-29 20:02:11 +09:00 |
Yuichi Nishiwaki
|
7b73b37bec
|
cleanup
|
2014-03-29 09:04:14 +09:00 |
Yuichi Nishiwaki
|
0b58624864
|
no need to handle set!/if/begin syntaces at macroexpansion stage
|
2014-03-29 09:00:37 +09:00 |
Yuichi Nishiwaki
|
c5d9972d2e
|
macro transformer should never return macro objects
|
2014-03-29 08:57:15 +09:00 |
Yuichi Nishiwaki
|
464ecdd452
|
call symbol_rename as much as possible
|
2014-03-29 08:53:24 +09:00 |
Yuichi Nishiwaki
|
cf1e1a8746
|
add pic_proc_name
|
2014-03-28 12:34:54 +09:00 |
Yuichi Nishiwaki
|
a304feaa28
|
show irep names in debug print
|
2014-03-28 12:29:00 +09:00 |
Yuichi Nishiwaki
|
24d6540d56
|
record procedure name in irep
|
2014-03-28 12:26:07 +09:00 |
Yuichi Nishiwaki
|
aeaf33ff47
|
print cfunction name in debug print
|
2014-03-28 12:18:32 +09:00 |
Yuichi Nishiwaki
|
b7d8a2c724
|
record cfunc procedure names
|
2014-03-28 12:18:32 +09:00 |
Yuichi Nishiwaki
|
fbbbf7b019
|
cleanup
|
2014-03-28 12:18:24 +09:00 |
Yuichi Nishiwaki
|
cea7b73840
|
add pic_list7
|
2014-03-28 12:11:59 +09:00 |
Yuichi Nishiwaki
|
010ee9ddb6
|
get rid of redundant symbol to value cast
|
2014-03-28 12:10:09 +09:00 |
Yuichi Nishiwaki
|
c86c153e53
|
when procedual-define is analyzed, don't create a lambda expression
inside, call analyze_procedure directly instead.
|
2014-03-28 12:10:09 +09:00 |
Yuichi Nishiwaki
|
3215ba2677
|
cleanup. move analyze_lambda
|
2014-03-28 12:10:09 +09:00 |
Yuichi Nishiwaki
|
e47bd63762
|
[refactor] add analyze_declare
|
2014-03-28 12:10:09 +09:00 |
Yuichi Nishiwaki
|
e2741f8580
|
[refactor] analyze_define
|
2014-03-28 12:10:09 +09:00 |
Yuichi Nishiwaki
|
9742689c40
|
Revert "reserve the 0 symbol for system use"
This reverts commit 816343bd31 .
Conflicts:
include/picrin/value.h
src/state.c
|
2014-03-27 16:23:22 +09:00 |
Yuichi Nishiwaki
|
c10f40acd4
|
change pic_find_rename API
|
2014-03-27 16:19:55 +09:00 |
Yuichi Nishiwaki
|
4cd217937f
|
if rest argument value is captured, copy it to capture area. close #78.
|
2014-03-26 21:02:43 +09:00 |
Yuichi Nishiwaki
|
6ea78fbf27
|
delete pic_apply_argv
|
2014-03-25 21:04:30 +09:00 |
Yuichi Nishiwaki
|
e51f0d6dc3
|
add arity-fixed apply functions
|
2014-03-25 20:54:57 +09:00 |
Yuichi Nishiwaki
|
4b13848cbc
|
separate macroexpansion and arena management
|
2014-03-25 15:42:20 +09:00 |
Yuichi Nishiwaki
|
ca42b44921
|
update xhash uses
|
2014-03-25 15:29:26 +09:00 |
Yuichi Nishiwaki
|
594742f845
|
refine variabe redefinitino error message
|
2014-03-25 14:31:32 +09:00 |
Yuichi Nishiwaki
|
c3240b9133
|
add pic_warnf
|
2014-03-25 14:31:24 +09:00 |
Yuichi Nishiwaki
|
8d63fffe87
|
don't create duplicate slots
|
2014-03-25 14:25:48 +09:00 |
Yuichi Nishiwaki
|
88a7d1f2b9
|
s/senv->name/senv->renames/g
|
2014-03-25 14:21:23 +09:00 |
Yuichi Nishiwaki
|
b757368748
|
add renamer APIs
|
2014-03-25 14:12:53 +09:00 |
Yuichi Nishiwaki
|
816343bd31
|
reserve the 0 symbol for system use
|
2014-03-25 13:37:20 +09:00 |
Yuichi Nishiwaki
|
514937662e
|
renamed symbols must be always greater than or equal to 0
|
2014-03-25 13:26:42 +09:00 |
Yuichi Nishiwaki
|
abefda9ee9
|
avoid lcm overflow
|
2014-03-25 12:25:08 +09:00 |
Yuichi Nishiwaki
|
bccfc1f08d
|
throw error when macro definition evaluates to non-procedure object
|
2014-03-24 15:30:44 +09:00 |
Yuichi Nishiwaki
|
b61da9bc47
|
use UNREACHABLE macro
|
2014-03-24 15:30:32 +09:00 |
Yuichi Nishiwaki
|
b29832d2c5
|
refactor macroexpand
|
2014-03-24 15:27:03 +09:00 |
Yuichi Nishiwaki
|
9dcdc45ab6
|
cleanup
|
2014-03-24 15:15:08 +09:00 |
Yuichi Nishiwaki
|
af80ba6b36
|
pic_gc_protect now returns a value
|
2014-03-24 15:14:54 +09:00 |
Yuichi Nishiwaki
|
f2717910d0
|
remove error handling stuff from the VM
|
2014-03-24 15:12:01 +09:00 |
Yuichi Nishiwaki
|
1821039e78
|
pic->rescue is no longer used
|
2014-03-24 15:00:55 +09:00 |
Yuichi Nishiwaki
|
8451bd5c19
|
cleanup
|
2014-03-24 14:58:09 +09:00 |
Yuichi Nishiwaki
|
0fcd1a3e10
|
inline pic_error definition
|
2014-03-24 14:57:10 +09:00 |
Yuichi Nishiwaki
|
bb7e35ca0e
|
pic_raise is equivalent to pic_throw. remove it.
|
2014-03-24 14:55:41 +09:00 |
Yuichi Nishiwaki
|
6448a36db5
|
don't use pic->rescue stack in with-exception-handler
|
2014-03-24 14:54:03 +09:00 |
Yuichi Nishiwaki
|
4d56ebf634
|
drop support for raise-continuable for a moment
|
2014-03-24 14:52:52 +09:00 |
Yuichi Nishiwaki
|
edb4f61d5e
|
error function is no longer used
|
2014-03-24 14:24:53 +09:00 |
Yuichi Nishiwaki
|
daa7513be5
|
add pic_throw function
|
2014-03-24 14:09:28 +09:00 |
Yuichi Nishiwaki
|
136980ae2e
|
rewrite define-library expander with pic_try/catch
|
2014-03-24 13:25:37 +09:00 |
Yuichi Nishiwaki
|
3d465f21dc
|
now you can 'throw' exceptions from catch clause
|
2014-03-24 13:24:37 +09:00 |
Yuichi Nishiwaki
|
4a2cb90095
|
move pic_try/pic_catch macros to error.h
|
2014-03-24 12:30:21 +09:00 |
Yuichi Nishiwaki
|
6d0e147f3d
|
Merge branch 'master' of github.com:wasabiz/picrin
|
2014-03-24 10:38:45 +09:00 |
koba-e964
|
30cc6998de
|
[bugfix] macroexpand
macroexpand restores pic->lib in the case of an error
|
2014-03-23 20:58:28 +09:00 |
Yuichi Nishiwaki
|
b12be97194
|
cleanup
|
2014-03-23 18:47:55 +09:00 |
Yuichi Nishiwaki
|
12728df36f
|
perform tear-off operation lazily
|
2014-03-23 13:09:35 +09:00 |
Yuichi Nishiwaki
|
93414fac52
|
s/env.values/env.regs/g
|
2014-03-23 12:45:36 +09:00 |
Yuichi Nishiwaki
|
4a1809a9c5
|
get access to captured local variables with OP_LREF/OP_LSET
|
2014-03-23 12:18:41 +09:00 |
Yuichi Nishiwaki
|
1b6f1db1c0
|
s/create_cv_table/create_activation/g
|
2014-03-23 12:10:34 +09:00 |
Yuichi Nishiwaki
|
cac31845d0
|
cv_tbl is no longer used
|
2014-03-23 12:10:34 +09:00 |
Yuichi Nishiwaki
|
c9eb612561
|
do variable closing operation not in OP_CALL but in OP_RET
|
2014-03-23 12:10:34 +09:00 |
Yuichi Nishiwaki
|
74294c819f
|
remove resolver pass
|
2014-03-23 11:55:06 +09:00 |
Yuichi Nishiwaki
|
312c977c17
|
distinguish lref and cref at analysis stage
|
2014-03-23 11:28:11 +09:00 |
Yuichi Nishiwaki
|
0bcb970842
|
handle grefs at analyzing stage
|
2014-03-23 11:10:27 +09:00 |
Yuichi Nishiwaki
|
d8ab5cadd1
|
cleanup. rename local variable.
|
2014-03-22 19:19:49 +09:00 |
Yuichi Nishiwaki
|
ac4e46783c
|
remove unused property
|
2014-03-22 19:13:46 +09:00 |
Yuichi Nishiwaki
|
12852b0628
|
s/cv_num/capturec/g
|
2014-03-22 19:13:07 +09:00 |
Yuichi Nishiwaki
|
bdcf8a4bcb
|
change ugly implementation; don't call realloc for each puching!
|
2014-03-22 19:04:42 +09:00 |
Yuichi Nishiwaki
|
cb2f9fece3
|
separate cv table creation
|
2014-03-22 18:58:25 +09:00 |
Yuichi Nishiwaki
|
5a56f57782
|
hold local variables information in codegen_context
|
2014-03-22 18:46:57 +09:00 |
Yuichi Nishiwaki
|
046fae1adb
|
grammer error fix
|
2014-03-22 18:41:46 +09:00 |
Yuichi Nishiwaki
|
510af57ce5
|
explict type cast for return valus from pic_*allloc family is not mandatory
|
2014-03-22 18:29:14 +09:00 |
Yuichi Nishiwaki
|
a9e98b1c31
|
small CSE optimize for irep
|
2014-03-22 18:23:33 +09:00 |
Yuichi Nishiwaki
|
189487b026
|
[bugfix] don't push symbols doubly to captured variable list
|
2014-03-21 12:51:57 +09:00 |
Yuichi Nishiwaki
|
9a3ff987af
|
define pic_push/pic_pop macro in pair.h
|
2014-03-21 12:36:46 +09:00 |
Yuichi Nishiwaki
|
a9a530c9bd
|
memorize only list of captured symbols
|
2014-03-21 12:34:45 +09:00 |
Yuichi Nishiwaki
|
91065a7c25
|
add commentary to lambda analyzer to avoid regression
|
2014-03-21 08:20:33 +09:00 |
Yuichi Nishiwaki
|
b6b47943bb
|
use enum value for variable marking
|
2014-03-21 08:17:52 +09:00 |
Yuichi Nishiwaki
|
cfde253f26
|
split xvect module
|
2014-03-20 23:09:45 +09:00 |
Yuichi Nishiwaki
|
53cd2942d1
|
change xvect API
|
2014-03-20 22:12:20 +09:00 |
Yuichi Nishiwaki
|
0c12784da5
|
use xvect
|
2014-03-20 21:56:49 +09:00 |
Yuichi Nishiwaki
|
0b4cb76834
|
add xvect
|
2014-03-20 21:17:28 +09:00 |
Yuichi Nishiwaki
|
1548a17b35
|
cleanup
|
2014-03-20 13:48:51 +09:00 |
Yuichi Nishiwaki
|
37a87046b7
|
remove redundant arena management
|
2014-03-20 13:48:32 +09:00 |
Yuichi Nishiwaki
|
3158a41772
|
refactor analyze_args
|
2014-03-20 13:41:47 +09:00 |
Yuichi Nishiwaki
|
6d6420f2b9
|
refactor analyze_var
|
2014-03-20 11:44:12 +09:00 |
Yuichi Nishiwaki
|
0cb8920276
|
refactor analyzer
|
2014-03-19 21:45:02 +09:00 |
Yuichi Nishiwaki
|
5776940420
|
POPN macro was not used
|
2014-03-19 19:49:09 +09:00 |
Yuichi Nishiwaki
|
bc602aa767
|
pic_state is not used in pic_dump_*
|
2014-03-19 19:44:45 +09:00 |
Yuichi Nishiwaki
|
e80c3cc60b
|
move irep dump function definitions to irep.h
|
2014-03-19 19:41:24 +09:00 |
Yuichi Nishiwaki
|
fc5ea838ab
|
move global variable accessor/mutator definitions to vm.c
|
2014-03-19 19:38:40 +09:00 |
Yuichi Nishiwaki
|
ef7d01971b
|
publish UNREACHABLE macro
|
2014-03-19 17:40:31 +09:00 |
Yuichi Nishiwaki
|
acfa79bc62
|
s/NORETURN/noreturn/g
|
2014-03-19 17:37:06 +09:00 |