diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-05 08:19:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-05 08:19:43 -0700 |
commit | 7007754f037dd1d6ef4f9cfd636ef91016809737 (patch) | |
tree | 7ce814df93acd143ccbd4ad66f87ce33d244f0ca /parser.h | |
parent | edbb612c40e3541a170aeaaf41ad8703c8b70cf9 (diff) | |
download | txr-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |