some refactoring trying to get h_many to work
This commit is contained in:
parent
9a96314931
commit
5a57adabab
3 changed files with 29 additions and 24 deletions
|
|
@ -331,6 +331,12 @@ bool h_stringmap_present_epsilon(const HStringMap *m)
|
|||
return (m->epsilon_branch != NULL);
|
||||
}
|
||||
|
||||
bool h_stringmap_empty(const HStringMap *m)
|
||||
{
|
||||
return (m->epsilon_branch == NULL
|
||||
&& m->end_branch == NULL
|
||||
&& h_hashtable_empty(m->char_branches));
|
||||
}
|
||||
|
||||
const HStringMap *h_first(size_t k, HCFGrammar *g, const HCFChoice *x)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue