Yuichi Nishiwaki
|
1e5c6d899e
|
s/pic_sc/pic_sc_ptr/g. s/pic_senv/pic_senv_ptr/g.
|
2014-04-04 13:07:16 +09:00 |
Yuichi Nishiwaki
|
e32e42c5f9
|
support datum label reader
|
2014-04-01 11:40:20 +09:00 |
Yuichi Nishiwaki
|
2643cb0e3c
|
add SWAP macro
|
2014-04-01 11:39:35 +09:00 |
Yuichi Nishiwaki
|
2151640331
|
add native box API
|
2014-03-31 21:50:08 +09:00 |
Yuichi Nishiwaki
|
ed0146e7a9
|
add pic_data_type_p
|
2014-03-31 08:26:55 +09:00 |
Yuichi Nishiwaki
|
6d80ee8b96
|
add pic_assert_type
|
2014-03-31 08:26:33 +09:00 |
Yuichi Nishiwaki
|
d91ae885b6
|
add fixed-arity pic_values function
|
2014-03-31 08:13:06 +09:00 |
Yuichi Nishiwaki
|
c3b737037a
|
refactor native_stack_length
|
2014-03-30 14:45:24 +09:00 |
Yuichi Nishiwaki
|
d8c182bc69
|
add user-defined data type API
|
2014-03-29 20:42:06 +09:00 |
Yuichi Nishiwaki
|
cf1e1a8746
|
add pic_proc_name
|
2014-03-28 12:34:54 +09:00 |
Yuichi Nishiwaki
|
24d6540d56
|
record procedure name in irep
|
2014-03-28 12:26:07 +09:00 |
Yuichi Nishiwaki
|
b7d8a2c724
|
record cfunc procedure names
|
2014-03-28 12:18:32 +09:00 |
Yuichi Nishiwaki
|
cea7b73840
|
add pic_list7
|
2014-03-28 12:11:59 +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
|
6ea78fbf27
|
delete pic_apply_argv
|
2014-03-25 21:04:30 +09:00 |
Yuichi Nishiwaki
|
ca42b44921
|
update xhash uses
|
2014-03-25 15:29:26 +09:00 |
Yuichi Nishiwaki
|
88a7d1f2b9
|
s/senv->name/senv->renames/g
|
2014-03-25 14:21:23 +09:00 |
Yuichi Nishiwaki
|
52803aa825
|
pic_sym is now an alias to unsigned int
|
2014-03-25 14:13:38 +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
|
fe56195988
|
add pic_valid_int predicate
|
2014-03-25 12:24:53 +09:00 |
Yuichi Nishiwaki
|
1821039e78
|
pic->rescue is no longer used
|
2014-03-24 15:00:55 +09:00 |
Yuichi Nishiwaki
|
4d56ebf634
|
drop support for raise-continuable for a moment
|
2014-03-24 14:52:52 +09:00 |
Yuichi Nishiwaki
|
042bd30415
|
add notation about pic_try usage
|
2014-03-24 14:51:41 +09:00 |
Yuichi Nishiwaki
|
daa7513be5
|
add pic_throw function
|
2014-03-24 14:09:28 +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
|
d5d721f9dd
|
pic_vtype should not evaluate the argument twice
|
2014-03-24 10:55:03 +09:00 |
Yuichi Nishiwaki
|
222e3618ee
|
use uint**_t for nan-boxing
|
2014-03-24 10:49:20 +09:00 |
Yuichi Nishiwaki
|
93414fac52
|
s/env.values/env.regs/g
|
2014-03-23 12:45:36 +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
|
12852b0628
|
s/cv_num/capturec/g
|
2014-03-22 19:13:07 +09:00 |
Yuichi Nishiwaki
|
9a3ff987af
|
define pic_push/pic_pop macro in pair.h
|
2014-03-21 12:36:46 +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
|
e9d5fb3ab5
|
remove redundant prefixes
|
2014-03-19 17:55:52 +09:00 |
Yuichi Nishiwaki
|
a20356952b
|
refactor GENSYM macro
|
2014-03-19 17:52:54 +09:00 |
Yuichi Nishiwaki
|
0b7597b80b
|
reafactor noreturn macro
|
2014-03-19 17:45:35 +09:00 |
Yuichi Nishiwaki
|
8625f75470
|
move utility macros to picrin/util.h
|
2014-03-19 17:43:53 +09:00 |
Yuichi Nishiwaki
|
8598042deb
|
pic_list_p don't need to take pic_state *.
|
2014-03-16 23:12:07 +09:00 |
Yuichi Nishiwaki
|
68ea22f6eb
|
add pic_blk_exit
|
2014-03-10 01:51:27 +09:00 |
Yuichi Nishiwaki
|
d227c22379
|
change native_stack marker type to char *
|
2014-03-10 01:11:01 +09:00 |
Yuichi Nishiwaki
|
920674a6ef
|
typedef struct pic_block pic_block
|
2014-03-07 22:09:12 +09:00 |
Yuichi Nishiwaki
|
751d0f87f8
|
typedef struct pic_code pic_code
|
2014-03-07 22:06:43 +09:00 |
Yuichi Nishiwaki
|
f0367d95a0
|
cleanup
|
2014-03-04 23:58:07 +09:00 |
Yuichi Nishiwaki
|
464925d220
|
refactor pic_for_each
|
2014-03-03 22:21:34 +09:00 |
Yuichi Nishiwaki
|
3b8868c577
|
typedef pic_value pic_list
|
2014-03-01 20:54:02 +09:00 |
Yuichi Nishiwaki
|
c357a9302d
|
remove pic_list, and add pic_listn
|
2014-03-01 20:46:08 +09:00 |
Yuichi Nishiwaki
|
6e7567a598
|
my own read impl.
|
2014-03-01 20:21:44 +09:00 |
Yuichi Nishiwaki
|
8586dc9057
|
xrope is now the internal representation of pic_str
|
2014-02-27 21:54:37 +09:00 |
Yuichi Nishiwaki
|
8e511bc410
|
remove dependencies on pic_state from pic_strlen and pic_strcmp
|
2014-02-27 19:42:59 +09:00 |
Yuichi Nishiwaki
|
06a7b0f5f6
|
add pic_func struct to hold native function name
|
2014-02-26 00:39:16 +09:00 |
Yuichi Nishiwaki
|
bb93a8be14
|
catch up to XFILE changes
|
2014-02-25 21:07:32 +09:00 |
Yuichi Nishiwaki
|
9a73ba707c
|
add pic_strcmp
|
2014-02-23 17:45:34 +09:00 |
Yuichi Nishiwaki
|
0fa61b6a4a
|
change pic_get_args API. 'z' now returns a pointer to null terminated
cstr, 's' a pointer to pic_str
|
2014-02-23 11:52:15 +09:00 |
Yuichi Nishiwaki
|
9f240c191c
|
add pic_str_new_fill
|
2014-02-23 11:25:39 +09:00 |
Yuichi Nishiwaki
|
349d7f1799
|
don't take int arguments with size_t
|
2014-02-23 10:51:21 +09:00 |
Yuichi Nishiwaki
|
7ac4cd9ded
|
add 'pic_' prefix to heap manipulte functions
|
2014-02-22 16:54:12 +09:00 |
Yuichi Nishiwaki
|
5175f0bb8d
|
change gc heap API and hide sturctures.
|
2014-02-22 15:53:59 +09:00 |
Yuichi Nishiwaki
|
6c065e92c0
|
add type alias for pic_blob
|
2014-02-22 15:22:02 +09:00 |
Yuichi Nishiwaki
|
56f5f4a1f5
|
move sturct definitions for basic types to type-specific headers respectively
|
2014-02-22 15:21:55 +09:00 |
Yuichi Nishiwaki
|
ca4276afc7
|
add type aliases for some important types
|
2014-02-21 17:36:05 +09:00 |
Yuichi Nishiwaki
|
c28c45961b
|
rename pic_symbol_value to pic_sym_value
|
2014-02-21 17:35:21 +09:00 |
Yuichi Nishiwaki
|
8f5569d505
|
xstdout now handles its own buffer. flush prompts before printing result expression.
|
2014-02-21 01:28:38 +09:00 |
Yuichi Nishiwaki
|
80a794310d
|
call/cc must save pic->ip
|
2014-02-20 20:59:35 +09:00 |
Yuichi Nishiwaki
|
078b72ff17
|
cleanup
|
2014-02-20 20:44:30 +09:00 |
Yuichi Nishiwaki
|
a078266c2d
|
add pic_raise_continuable
|
2014-02-18 16:58:51 +09:00 |
Yuichi Nishiwaki
|
098d5dc022
|
s/syntax/macro/g
|
2014-02-12 11:13:29 +09:00 |
Yuichi Nishiwaki
|
8ea3a7b544
|
rename a property of pic_syntax s/macro/proc/g
|
2014-02-12 11:05:32 +09:00 |
Yuichi Nishiwaki
|
6b69e8e74b
|
stx->sym property is no longer used
|
2014-02-12 11:02:59 +09:00 |
Yuichi Nishiwaki
|
3d97e7f749
|
syntax_new is a private API
|
2014-02-12 10:59:10 +09:00 |
Yuichi Nishiwaki
|
93a259870c
|
replace pic_syntax_new with pic_syntax_new_macro
|
2014-02-12 10:52:33 +09:00 |
Yuichi Nishiwaki
|
527f46480a
|
rename symbols before macro lookup
|
2014-02-12 10:39:20 +09:00 |
Yuichi Nishiwaki
|
9c278889fc
|
add partial apply funciton
|
2014-02-12 01:17:05 +09:00 |
Yuichi Nishiwaki
|
fc7b59100d
|
add some user functions to manipulate ports
|
2014-02-11 13:45:41 +09:00 |
Yuichi Nishiwaki
|
372fd3157b
|
error report is propagated through pic->err
|
2014-02-11 13:21:00 +09:00 |
Yuichi Nishiwaki
|
7fe109a998
|
include xfile in picirn.h
|
2014-02-09 14:52:53 +09:00 |
Yuichi Nishiwaki
|
d100dde6b1
|
Merge branch 'master' into trampoline
|
2014-02-07 10:05:31 +09:00 |
Yuichi Nishiwaki
|
53979bf848
|
prefer type alias to types with 'struct'
|
2014-02-07 01:15:17 +09:00 |
Yuichi Nishiwaki
|
b50006381b
|
remove unnecessary argument names in prototype
|
2014-02-06 14:23:29 +09:00 |
Yuichi Nishiwaki
|
dd547ac093
|
add OP_NOP
|
2014-02-04 16:58:50 +09:00 |
Yuichi Nishiwaki
|
7837a30d53
|
add OP_NOP
|
2014-02-04 16:20:17 +09:00 |
Yuichi Nishiwaki
|
122c09d91e
|
add logic flaw gate in pic_type_repr
|
2014-01-19 00:55:19 -08:00 |
Yuichi Nishiwaki
|
ec00ec0257
|
add pic_test macro
|
2014-01-19 00:33:33 -08:00 |
Yuichi Nishiwaki
|
ab411cc298
|
gcc complains that he can't assure if switch-enum is complete
|
2014-01-19 00:32:43 -08:00 |
Yuichi Nishiwaki
|
0fec56362d
|
add OP_NOT instruction
|
2014-02-02 14:54:47 +09:00 |
Yuichi Nishiwaki
|
116a65cdee
|
add pic_receive
|
2014-02-02 12:38:46 +09:00 |
Yuichi Nishiwaki
|
19db4bb6b2
|
rest array got by pic_get_args has a dynamic extent; that is, we cannot
store it to a heap object when we are going to rewind that stack and
restore an old continuation.
|
2014-02-02 12:27:48 +09:00 |
Yuichi Nishiwaki
|
f2507b5cbf
|
rename ..._from_... to ..._by_...
|
2014-02-02 12:26:43 +09:00 |
Yuichi Nishiwaki
|
2373e7a067
|
continuation now can take more than 1 arguments
|
2014-02-02 12:11:15 +09:00 |
Yuichi Nishiwaki
|
7547b83515
|
add pic_values functions
|
2014-02-02 12:10:31 +09:00 |
Yuichi Nishiwaki
|
b19631f18f
|
use submodule
|
2014-02-01 22:16:09 +09:00 |
Yuichi Nishiwaki
|
a4a63314a9
|
add pic_for_each macro
|
2014-02-01 16:04:57 +09:00 |
Yuichi Nishiwaki
|
3b53cc8a6b
|
get struct pic_code diet
|
2014-01-31 03:14:02 +09:00 |
Yuichi Nishiwaki
|
53fe18a94e
|
delete OP_PUSHFLOAT
|
2014-01-31 03:11:28 +09:00 |
Yuichi Nishiwaki
|
d70d96cb34
|
cosmetic changes
|
2014-01-31 03:04:00 +09:00 |
Yuichi Nishiwaki
|
9172dc9f31
|
remove old pic_symbol_p macro
|
2014-01-31 03:03:36 +09:00 |
Yuichi Nishiwaki
|
52fc58b55e
|
use a portable way: append 'static' designator everywhere 'inline' is added
|
2014-01-31 02:58:53 +09:00 |