Expanded vtable for methods to determine whether a combinator is ok to use with regular or CF grammars.
This commit is contained in:
parent
8163b3981d
commit
36e1f66de0
25 changed files with 200 additions and 4 deletions
|
|
@ -17,8 +17,20 @@ static HParseResult* parse_attr_bool(void *env, HParseState *state) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static bool ab_isValidRegular(void *env) {
|
||||
HAttrBool *ab = (HAttrBool*)env;
|
||||
return ab->p->vtable->isValidRegular(ab->p->env);
|
||||
}
|
||||
|
||||
static bool ab_isValidCF(void *env) {
|
||||
HAttrBool *ab = (HAttrBool*)env;
|
||||
return ab->p->vtable->isValidCF(ab->p->env);
|
||||
}
|
||||
|
||||
static const HParserVtable attr_bool_vt = {
|
||||
.parse = parse_attr_bool,
|
||||
.isValidRegular = ab_isValidRegular,
|
||||
.isValidCF = ab_isValidCF,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue