Commit Graph

61 Commits

Author SHA1 Message Date
Yuichi Nishiwaki 70a4432d20 fix build on x64 2017-03-29 08:20:02 +09:00
Yuichi Nishiwaki d66ce64130 generate boot.c from boot.scm 2017-03-23 22:47:55 +09:00
Yuichi Nishiwaki 8764bec50b move main.c to src/ 2014-09-01 09:40:55 +09:00
Yuichi Nishiwaki 029d98338d split repl and main loop 2014-08-31 00:36:20 +09:00
Sunrim KIM (keen) 6b9a7788e1 add scratch 2014-08-07 16:35:33 +09:00
Yuichi Nishiwaki 9b95c3c75e exit status 2014-07-29 15:43:59 +09:00
Yuichi Nishiwaki 2f7a51c096 move the repl source to under piclib 2014-07-29 15:23:40 +09:00
Yuichi Nishiwaki dd52dee01c no exit 2014-07-28 13:22:24 +09:00
Yuichi Nishiwaki 786cf9d894 fix main.scm 2014-07-28 11:44:19 +09:00
Yuichi Nishiwaki fc388f8d46 call main.scm inside main.c 2014-07-28 11:43:52 +09:00
Yuichi Nishiwaki db38f13600 add main.scm 2014-07-28 11:37:46 +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 09efa4715c add another argument to eval 2014-07-27 13:23:59 +09:00
Yuichi Nishiwaki 9e9fd2527d load (scheme read) library at initialization 2014-06-25 22:39:29 +09:00
Yuichi Nishiwaki 6b8903bd83 fix degre 2014-06-25 22:36:42 +09:00
Yuichi Nishiwaki da4a4fd449 api changes of reader/parser 2014-06-25 15:39:04 +09:00
OGINO Masanori d5dfd9547f Match the case of package name for find_package.
This mismatch causes build failure on Linux.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-06-05 22:08:07 +09:00
Yuichi Nishiwaki 70e3ed2354 drop libreadline dependency. Use libedit instead. 2014-05-26 12:01:08 +09:00
Yuichi Nishiwaki 920524dc40 add pic_print_backtrace function 2014-04-06 14:00:45 +09:00
Yuichi Nishiwaki bc7291a176 add support for `make install` 2014-04-06 12:36:08 +09:00
Yuichi Nishiwaki cb288532a9 support REPL readline history save and load 2014-04-06 01:40:04 +09:00
Yuichi Nishiwaki 76d996290f import more libraries at repl start-up 2014-04-06 01:04:19 +09:00
Yuichi Nishiwaki 38c4e7e6de implemented simple backtrace 2014-03-29 20:02:11 +09:00
Yuichi Nishiwaki 2d25594592 fix #81. 2014-03-26 14:08:39 +09:00
Yuichi Nishiwaki 4a2cb90095 move pic_try/pic_catch macros to error.h 2014-03-24 12:30:21 +09:00
Yuichi Nishiwaki 495be09d8a [bugfix] could not explicitly disable readline on some environment where libreadline
is installed
2014-03-15 21:22:53 +09:00
Yuichi Nishiwaki 5b2898ae5c rename read functions which return a list of multiple expressions to 'parse' 2014-03-04 00:26:33 +09:00
Yuichi Nishiwaki 2cdcbb150a refactor repl 2014-03-03 23:00:58 +09:00
Yuichi Nishiwaki d168e7e1c8 catch read error in repl 2014-03-02 21:44:54 +09:00
Yuichi Nishiwaki 2bd25266b9 If readline is installed, enable it. 2014-03-02 14:34:02 +09:00
Yuichi Nishiwaki 40b6635a2f explicitly include getopt.h 2014-03-02 13:33:12 +09:00
Yuichi Nishiwaki e30529d629 Add experimental cmake support 2014-03-02 01:52:41 +09:00
Yuichi Nishiwaki 6e7567a598 my own read impl. 2014-03-01 20:21:44 +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 372fd3157b error report is propagated through pic->err 2014-02-11 13:21:00 +09:00
Yuichi Nishiwaki 655eb7a3bd add pic_compile 2014-01-20 16:57:39 +09:00
Yuichi Nishiwaki ca068f560b clarify license information 2014-01-17 20:58:31 +09:00
Yuichi Nishiwaki c39f598dc8 add closer debug print 2014-01-16 22:03:00 +09:00
Yuichi Nishiwaki fbffa4697a import repl libraries by default 2014-01-08 15:38:47 +09:00
Yuichi Nishiwaki be22f63378 Merge pull request #8 from omasanori/fix-include
Include string.h and stdlib.h at all time.
2014-01-04 23:22:40 -08:00
OGINO Masanori 61f0852b82 Include string.h and stdlib.h at all time.
Even if readline support is disabled, some functions declared in
string.h and stdlib.h are used. (e.g. strlen and exit)

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-05 16:12:17 +09:00
OGINO Masanori 9681301ab4 Fix warnings when !PIC_ENABLE_READLINE.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-05 16:06:14 +09:00
Yuichi Nishiwaki 80aed24fd7 add yet another debug print 2013-12-09 15:36:41 +09:00
Yuichi Nishiwaki 15ded87897 report exit status via a global variable 2013-12-06 21:15:21 -08:00
Yuichi Nishiwaki 1f54f5d0fb cosmetic changes 2013-12-06 21:11:15 -08:00
Yuichi Nishiwaki e5a0ce33aa [bugfix] res might be uninitialized 2013-12-06 04:50:51 -08:00
Yuichi Nishiwaki 7505a31cf1 update help 2013-12-05 17:21:42 +09:00
Yuichi Nishiwaki af2efbc990 add -e option (for one liner script) 2013-12-05 17:10:28 +09:00
Yuichi Nishiwaki 223e873ff0 accept empty lines in repl 2013-11-13 17:37:05 +09:00
Yuichi Nishiwaki 7ae15246fa [bugfix] picrin evaluates exprs in files in order. 2013-11-04 13:18:16 -05:00