Yuichi Nishiwaki
029d98338d
split repl and main loop
2014-08-31 00:36:20 +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
fc388f8d46
call main.scm inside main.c
2014-07-28 11:43:52 +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
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
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
4a2cb90095
move pic_try/pic_catch macros to error.h
2014-03-24 12:30:21 +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
40b6635a2f
explicitly include getopt.h
2014-03-02 13:33:12 +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
Yuichi Nishiwaki
207ec5bd24
add eq? function
2013-10-31 00:29:55 +09:00
Yuichi Nishiwaki
98a41314fe
parser returns multiple expressions in a call
2013-10-30 17:06:01 +09:00
Yuichi Nishiwaki
9424f0b9c0
show codegen error message when compilation failure
2013-10-29 02:33:22 +09:00
Yuichi Nishiwaki
98e5288b04
the executable binary takes a scheme file to execute in cmd arg line
2013-10-28 22:08:03 +09:00
Yuichi Nishiwaki
4fa2bad5fa
add pic_apply function (and remove pic_run)
2013-10-28 17:45:13 +09:00
Yuichi Nishiwaki
f192c96650
parse-from-file facility
2013-10-27 18:38:41 +09:00
Yuichi Nishiwaki
392eb61e51
show help with command line arg -h
2013-10-24 19:06:31 +09:00
Yuichi Nishiwaki
dd3adf30e6
use xhash to manage scopes during codegin
2013-10-22 22:22:35 +09:00
Yuichi Nishiwaki
adab797391
add system.c
2013-10-21 11:51:02 +09:00
Yuichi Nishiwaki
cefa9a9885
handle runtime error
2013-10-20 23:30:01 +09:00
Yuichi Nishiwaki
bb3c8ebf0d
move main.c to under tools/
2013-10-20 20:57:10 +09:00