2 keyword.cc -- keywords and identifiers
12 int tabcmp (Keyword_ent const &p1, Keyword_ent const &p2)
14 return strcmp (p1.name_, p2.name_);
17 Keyword_table::Keyword_table (Keyword_ent *tab)
20 table_.push_back (*tab++);
22 vector_sort (table_, tabcmp);
26 Keyword_table::lookup (char const *s) const
30 vsize idx = binary_search (table_, e, tabcmp);
32 return table_[idx].tokcode_;