From 890c6383a78f469429aeddf5c3f02af318cf103f Mon Sep 17 00:00:00 2001 From: Dan Hirsch Date: Sat, 23 Nov 2013 13:09:39 -0600 Subject: [PATCH] Added documentation for H_{A,V,VA,AV}DRULE --- src/glue.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/glue.h b/src/glue.h index 74963b0..1fe6ce4 100644 --- a/src/glue.h +++ b/src/glue.h @@ -53,7 +53,10 @@ // H_AVRULE is like H_VARULE but the action is attached outside the validation, // i.e. the validation receives the uninterpreted AST as input. // - +// H_ADRULE, H_VDRULE, H_AVDRULE, and H_VADRULE are the same as the +// equivalent non-D variants, except that they also allow you to uset +// the user_data pointer. In cases where both an attr_bool and an +// action are used, the same userdata pointer is given to both. #define H_RULE(rule, def) HParser *rule = def #define H_ARULE(rule, def) HParser *rule = h_action(def, act_ ## rule, NULL)