| 812 | { token_type_t::INVALID_TOKEN, NULL } }; |
| 813 | |
| 814 | token_type_t get_keyword_token(const std::string &s) |
| 815 | { |
| 816 | const KeywordDef *k = k_keywords; |
| 817 | for (; k->tok != token_type_t::INVALID_TOKEN; ++k) |
| 818 | { |
| 819 | if (s == k->keyword) |
| 820 | { |
| 821 | return k->tok; |
| 822 | } |
| 823 | } |
| 824 | return token_type_t::INVALID_TOKEN; |
| 825 | } |
| 826 | |
| 827 | void create_id_token(token_vector &tokens, const std::string &s) |
| 828 | { |