consider HCF_CHARSET terminal symbols (as the LL driver already treats them)

This commit is contained in:
Sven M. Hallberg 2013-05-14 16:15:58 +02:00
parent efae603c6b
commit c794be5b6f
2 changed files with 21 additions and 32 deletions

View file

@ -113,6 +113,7 @@ static int fill_table(HCFGrammar *g, HLLkTable *table)
if(hte->key == NULL)
continue;
const HCFChoice *a = hte->key; // production's left-hand symbol
assert(a->type == HCF_CHOICE);
// create table row for this nonterminal
HHashTable *row = h_hashtable_new(table->arena, h_eq_ptr, h_hash_ptr);