reader by readtable

This commit is contained in:
Yuichi Nishiwaki
2014-08-12 09:14:43 +09:00
parent 8dae333bbd
commit 058de5b7e9
5 changed files with 178 additions and 58 deletions
+13
View File
@@ -14,11 +14,24 @@ enum pic_typecase {
PIC_CASE_FOLD,
};
struct pic_trie {
struct pic_trie *table[256];
struct pic_proc *proc;
};
struct pic_reader {
short typecase;
xhash labels;
struct pic_trie *trie;
};
void pic_init_reader(pic_state *);
void pic_define_reader(pic_state *, const char *, pic_func_t);
struct pic_trie *pic_trie_new(pic_state *);
void pic_trie_delete(pic_state *, struct pic_trie *);
#if defined(__cplusplus)
}
#endif