summaryrefslogtreecommitdiffstats
path: root/eval.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-11 14:44:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-11 14:44:19 -0700
commita6f6072761d124c60793325bc512048b0f31f5a3 (patch)
treed7cbb320dd5ffdd58afe9f2588c876141caca261 /eval.h
parent812e63ca8f42637f6a856e66f57678cbb0472821 (diff)
downloadtxr-a6f6072761d124c60793325bc512048b0f31f5a3.tar.gz
txr-a6f6072761d124c60793325bc512048b0f31f5a3.tar.bz2
txr-a6f6072761d124c60793325bc512048b0f31f5a3.zip
listener: new *-1, *-2 ... *-20 macros.
* arith.h (minus_s): Declared. * eval.c (reg_symacro): Changing to external linkage. * eval.h (macro_time_s, reg_symacro): Declared. * parser.c (repl): Bind the *-1 to *-20 symbol macros. * txr.1: Documented.
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.h b/eval.h
index ad817d99..17e7fb18 100644
--- a/eval.h
+++ b/eval.h
@@ -28,6 +28,7 @@
extern val dwim_s, lambda_s, progn_s, vector_lit_s, vec_list_s, list_s;
extern val hash_lit_s, hash_construct_s, struct_lit_s, qref_s, uref_s;
extern val tree_lit_s, tree_construct_s;
+extern val macro_time_s;
extern val eval_error_s, if_s, call_s, identity_s;
extern val eq_s, eql_s, equal_s, less_s;
extern val car_s, cdr_s;
@@ -66,6 +67,7 @@ val macro_form_p(val form, val menv);
val func_get_name(val fun, val env);
void reg_varl(val sym, val val);
void reg_var(val sym, val val);
+void reg_symacro(val sym, val val);
void reg_fun(val sym, val fun);
void reg_mac(val sym, val fun);
val set_get_symacro(val sym, val form);