Commit Graph

62 Commits

Author SHA1 Message Date
Yuichi Nishiwaki d2a06d8efa add unmatch handler 2014-08-12 08:32:52 +09:00
Yuichi Nishiwaki aec33d59da read_pipe didn't satisfy reader signature 2014-08-12 08:31:00 +09:00
Yuichi Nishiwaki e3fc2d5009 add reader struct 2014-08-11 18:39:04 +09:00
Yuichi Nishiwaki bd98dda5d0 support exponential literal 2014-08-08 15:38:29 +09:00
Yuichi Nishiwaki 977345392f no need char conversion 2014-08-08 15:19:10 +09:00
Yuichi Nishiwaki a023db8054 drop support for rational literal 2014-08-08 15:08:08 +09:00
Yuichi Nishiwaki d62727bef9 add read-time eval 2014-08-06 15:53:22 +09:00
Yuichi Nishiwaki 52aa837bea support #!fold-case directive 2014-07-29 18:12:45 +09:00
Sunrim KIM on Raspberry Pi 39a4a12a10 Merge branch 'master' into rspi
Conflicts:
	src/read.c
2014-07-27 18:51:12 +09:00
Yuichi Nishiwaki 6a0cc4c9f7 single ')' should be an read error 2014-07-27 18:35:50 +09:00
Sunrim KIM on Raspberry Pi 331fe21297 use `int` in place of `char` when you compare it to EOF 2014-07-27 17:05:57 +09:00
Yuichi Nishiwaki e680b4a6bb change deflibrary API 2014-07-27 14:47:14 +09:00
Yuichi Nishiwaki fcd332be9f read +INF.0, +InF.0, +Nan.0, ... 2014-07-26 16:56:27 +09:00
Yuichi Nishiwaki 18b07fc853 change blob API 2014-07-22 13:55:21 +09:00
Sunrim KIM (keen) 79afb22833 fix a bug of plus reader 2014-07-19 16:47:33 +09:00
Yuichi Nishiwaki 9cefeeb423 expect returns as early as possible. read_directive might have missed a newline
in unmatched character that has consumed by expect
2014-07-19 11:51:37 +09:00
Yuichi Nishiwaki 3f8592772f error handling on error while reading char literal 2014-07-19 11:50:28 +09:00
Yuichi Nishiwaki 8d623da163 refactor read_directive 2014-07-19 11:50:11 +09:00
Yuichi Nishiwaki 091dc9a668 Merge pull request #169 from KeenS/directive-reader
Ignore shebang only when it's at the first line and allow reader directi...
2014-07-19 11:27:56 +09:00
Sunrim KIM (keen) a50d3da569 follow completely @wasabiz's code 2014-07-18 16:02:09 +09:00
Sunrim KIM (keen) bbeee8f10e change directive reader to ignore shebang 2014-07-18 16:00:08 +09:00
Sunrim KIM (keen) c440629dbf add error check 2014-07-18 15:47:36 +09:00
Sunrim KIM (keen) 2c1209ba63 remove redundant brace following review 2014-07-18 15:44:29 +09:00
Sunrim KIM (keen) b373ec433b ensure to correctly terminate hex string with non-hex char(';') 2014-07-17 22:23:06 +09:00
Sunrim KIM (keen) fe30beadf1 Ignore shebang only when it's at the first line and allow reader directives at other places whlile ignores them for now 2014-07-17 21:53:41 +09:00
Sunrim KIM (keen) 295d7fde31 allow pipe syntax 2014-07-17 21:52:15 +09:00
Yuichi Nishiwaki 40897e6351 support character literal 2014-07-16 16:12:25 +09:00
Yuichi Nishiwaki d85801e396 rational number literal reads exact integer if possible 2014-07-15 17:58:46 +09:00
Yuichi Nishiwaki 7aa17f5d1f read rational '123/456' literal 2014-07-11 22:44:44 +09:00
Yuichi Nishiwaki 6614f8fc4f support #true and #false literals 2014-07-04 13:44:30 +09:00
Yuichi Nishiwaki d810e42666 throw READ_ERROR when parser raised 2014-07-04 13:32:54 +09:00
Yuichi Nishiwaki 89506d0ced [bugfix] allocate size was inefficient 2014-06-29 00:54:20 +09:00
Yuichi Nishiwaki 690e2cdba6 refactor number parser 2014-06-28 22:32:26 +09:00
Yuichi Nishiwaki 5d3c59fc98 reads number as accurate as possible 2014-06-28 21:41:35 +09:00
Yuichi Nishiwaki 4772441589 allow "(a . b #;c )" 2014-06-28 20:02:13 +09:00
Yuichi Nishiwaki aae4bba98d [bugfix] wrong size for read string 2014-06-28 19:47:45 +09:00
Yuichi Nishiwaki 51b8344527 support infinity and nan literals 2014-06-27 08:55:02 +09:00
Yuichi Nishiwaki 36e0aa6f69 [bugfix] compound literals should consider inner comments 2014-06-27 08:55:02 +09:00
Yuichi Nishiwaki e1ca64b56e block comment reader must not consume the character right after the
comment end
2014-06-27 08:55:02 +09:00
Yuichi Nishiwaki 0b85e251a2 fix negative number reader 2014-06-27 08:55:01 +09:00
Yuichi Nishiwaki 556a460663 [bugfix] EOF is a delimiter 2014-06-27 08:55:01 +09:00
Yuichi Nishiwaki bb43c8d9dc add isdelim 2014-06-27 08:55:01 +09:00
Yuichi Nishiwaki 1eb4940b13 use isdigit 2014-06-27 08:55:01 +09:00
Yuichi Nishiwaki bc2a684961 add read function support 2014-06-25 22:36:56 +09:00
Yuichi Nishiwaki 2c84168861 hold integers in 64bit size 2014-06-25 21:49:28 +09:00
Yuichi Nishiwaki 4d9dc8011c fix read_vector bug 2014-06-25 21:40:51 +09:00
Yuichi Nishiwaki 029efc91c9 allow symbols with leading '.' 2014-06-25 21:40:42 +09:00
Yuichi Nishiwaki bd822fa4c6 fix EOF handling 2014-06-25 21:40:18 +09:00
Yuichi Nishiwaki ee82ee99d7 support nested block comment 2014-06-25 21:38:11 +09:00
Yuichi Nishiwaki a90330d3d9 comment readers should return undef values to report continuablility to
the parent function
2014-06-25 18:06:48 +09:00