Commit graph

27 commits

Author SHA1 Message Date
Alex Shinn
b638b9f1b4 Hygiene change. Removing syntactic closure flattening to
support unhygienic insertion.  Breaks the previous assumption
that syntactic closures were never nested.
2014-01-12 19:29:11 +09:00
Alex Shinn
9daf954bdc Fixing parameter setting with -Q option. 2014-01-05 12:51:58 -05:00
Alex Shinn
5866ec9b59 Fixing -V output for features list. 2013-10-15 14:31:13 +09:00
Alex Shinn
363d2bda24 Also reset the context env when updating interaction-environment.
Fixes issue #200.
2013-10-10 16:31:28 +09:00
Alex Shinn
f9d73ddc30 Adding the -R<module> option to run "main" procedures directly from modules,
analogous to Python's -m.  With no argument, runs chibi.repl.
2013-10-04 12:04:50 +09:00
Alex Shinn
8b15884658 Supporting (chibi repl) advise from main.c. 2013-10-03 23:34:17 +09:00
Alex Shinn
d7cda433bc Adding a shortcut for -xscheme.base. 2013-10-03 12:01:54 +09:00
Alex Shinn
db32409452 If unbound, using current-output-port in place of current-error-port for -x languages.
Allows -xscheme.r5rs.
2013-10-03 11:36:39 +09:00
Alex Shinn
82752174c2 Fixing env initialization for -m. Needed for -mchibi.repl -e'(repl)' to
use the default (scheme base) language.
2013-09-30 12:04:59 +09:00
Alex Shinn
a54c6c4e98 The big switch to (scheme base) as the default interaction-environment. 2013-09-30 10:53:21 +09:00
Alex Shinn
5b879a2b55 Adding -? to print help with no "unknown option" error message. 2013-09-29 11:17:38 +09:00
Alex Shinn
008d13b294 Making new -x handling work with -e/-p.
Optimizing the -xchibi.primitive case to use -q (i.e. no file I/O).
2013-09-29 11:15:29 +09:00
Alex Shinn
eb4adcc9dd Better -x handling. If the language defines the standard port
parameters but doesn't bind them, we bind them to stdin/stdout/stderr.
If the parameters are not defined at all, we abort.
2013-09-29 11:04:20 +09:00
Alex Shinn
d85cff247e Fixing bug when using -x with a language which doesn't have
interaction-environment.  We need to set this in the underlying
core environment first.  Fixes issue #193.
2013-09-14 22:31:27 +09:00
Alex Shinn
77cf790158 Don't treat bare () as the entire repl input as a literal. 2013-07-10 06:58:20 +09:00
Alex Shinn
03fcf059c9 -r also works together with -e/-p options 2013-06-19 23:20:31 +09:00
Alex Shinn
6e5f1e80f3 Python envy. SRFI-22 -r can now be used without a script,
and the main will be inferred from loaded modules.
See issue #182.
2013-06-19 23:15:43 +09:00
Alex Shinn
3cecf4e400 Removing unintentional disabling of Scheme load in main. 2013-06-16 10:32:44 +09:00
Alex Shinn
2b5f8ea007 Adding -s option to escalate warnings to errors.
Fixes issue #107.
2013-05-31 23:31:03 +09:00
Alex Shinn
d76c4e47c9 Using scheme load when available for scripts to preserve stack traces. 2013-04-07 23:46:30 +09:00
Alex Shinn
7c1c40fb07 checking for NULLs before checking exceptions 2013-04-05 19:55:36 +09:00
Alex Shinn
3373469883 SRFI-22 now requires the -r (run) option. 2012-11-11 16:17:26 +09:00
Bakul Shah
9b0f9c73f2 fix plan9 breakage 2012-11-10 15:16:00 -08:00
Alex Shinn
1053d99084 chibi main always wants to make stdin/out/err non-blocking 2012-07-21 17:23:12 +09:00
Alex Shinn
6bcfd141be -q implies modules are loaded 2012-06-28 00:42:44 -07:00
Alex Shinn
8518ebe641 image header magic field shouldn't be const (removes warning) 2012-06-20 21:07:18 -07:00
Alex Shinn
85a7efc003 automatically making sockets non-blocking on accept 2012-05-14 08:37:45 -04:00