mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 13:25:30 +00:00
Code cleanup.
This commit is contained in:
parent
e11dd95ba7
commit
6fefd8ea84
3
peglib.h
3
peglib.h
@ -387,8 +387,7 @@ private:
|
|||||||
/*
|
/*
|
||||||
* Semantic predicate
|
* Semantic predicate
|
||||||
*/
|
*/
|
||||||
typedef std::function<bool (const SemanticValues& sv, const any& dt)> SemanticPredicate;
|
// Note: 'parser_error' exception class should be be used in sematic action handlers to reject the rule.
|
||||||
|
|
||||||
struct parse_error {
|
struct parse_error {
|
||||||
parse_error() = default;
|
parse_error() = default;
|
||||||
parse_error(const char* s) : s_(s) {}
|
parse_error(const char* s) : s_(s) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user