commit - fe4add31c98645c75e33c5d2cfd9bf1821b5377a
commit + c64af147da5a26f0586e7d201175c5f9864ab478
blob - b821962d9a0b941bd7e99b3e0411057e3189a04b
blob + 465924eae396069cc11288010225f6cdc0a46c65
--- minip_a.h
+++ minip_a.h
* logical operators allowed on expressions:
*
* || (ordered) choice; first match wins
- * && restriction; only rhs is consumed
- * ! negative lookahead
+ * && restriction (lookahead); rhs is consumed
+ * ! negation; only allowed to the left of &&
*/
/* variable-length argument lists */
* - receive an arbitrary context parameter via ACTION()'s second argument.
* - receive an arbitrary environment pointer from the top-level parser call.
* - execute (only) after their subordinate parser(s) matched.
- * - can act as validations by returning the intended result.
+ * - can also act as validations by returning the intended result.
*/
typedef bool action(void *, void *, const char *, size_t);
#define ACTION(F, C) (F)((C), env_, inp_, p_ - inp_)