summaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-05 08:19:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-05 08:19:43 -0700
commit7007754f037dd1d6ef4f9cfd636ef91016809737 (patch)
tree7ce814df93acd143ccbd4ad66f87ce33d244f0ca /parser.h
parentedbb612c40e3541a170aeaaf41ad8703c8b70cf9 (diff)
downloadtxr-7007754f037dd1d6ef4f9cfd636ef91016809737.tar.gz
txr-7007754f037dd1d6ef4f9cfd636ef91016809737.tar.bz2
txr-7007754f037dd1d6ef4f9cfd636ef91016809737.zip
Basic REPL based on linenoise.
* Makefile (OBJS): Only include linenoise.o if have_termios is y. * configure: Adding test for termios. (have_termios): New configure and config.make variable. (gen_config_make): Generate have_termios variable. * parser.c (repl): New function. * parser.h (repl): Declared. * txr.c (help): Summarize new -i option. (txr_main): Implement -i repl.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 9d4d857c..16308570 100644
--- a/parser.h
+++ b/parser.h
@@ -94,6 +94,9 @@ val rlcp_tree(val to, val from);
val regex_parse(val string, val error_stream);
val lisp_parse(val source, val error_stream, val error_return_val, val name);
val read_eval_stream(val stream, val error_stream, val hash_bang_support);
+#if HAVE_TERMIOS
+val repl(val bindings, val in_stream, val out_stream);
+#endif
void parser_common_init(parser_t *);
void parser_cleanup(parser_t *);
val parser(val stream, val lineno);