diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-08 18:04:44 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-08 18:04:44 -0700 |
commit | 259b59ddd679f19744a03218357e51b1d1eddc5a (patch) | |
tree | e06b88e5de1748e2127b7aa7f61266753c91b29a /buf.h | |
parent | 52ef6223a9c84076bf19728028a77d9850d2c088 (diff) | |
download | txr-259b59ddd679f19744a03218357e51b1d1eddc5a.tar.gz txr-259b59ddd679f19744a03218357e51b1d1eddc5a.tar.bz2 txr-259b59ddd679f19744a03218357e51b1d1eddc5a.zip |
repl: groundwork for recursive listener invocation.
* parser.c (lino_ctx, repl_level): New static variable.
(repl): Increment repl_level on entry and decrement on exit.
On the initial entry, allocate the lino_t object, storing it
in the new static variable. Free it on outermost exit.
The number of > characters in the prompt indicates the
nesting level. The function now takes an environment
parameter, which is applied to the evaluation of the input
form. The intent is to be able to supply symbol macros which
expand to function calls implementing debugger commands.
(parser_init): Register sys:repl intrinsic.
* parser.h (repl): Declaration updated.
* txr.c (txr_main): Pass nil environment parameter to repl
Diffstat (limited to 'buf.h')
0 files changed, 0 insertions, 0 deletions