diff --git a/peglib.h b/peglib.h index 9e42981..67cd13c 100644 --- a/peglib.h +++ b/peglib.h @@ -387,8 +387,7 @@ private: /* * Semantic predicate */ -typedef std::function SemanticPredicate; - +// Note: 'parser_error' exception class should be be used in sematic action handlers to reject the rule. struct parse_error { parse_error() = default; parse_error(const char* s) : s_(s) {}