48 namespace identifier {
53 return isalpha(ch) || ch ==
'_';
58 return isalnum(ch) || ch ==
'_';
77 template<
class CharSeq>
99 template<
class CharSeq>
111 template<
class CharSeq>
bool is_start_char(char ch)
Say whether a character can be the first of an identifier.
std::string find_any_in(chewer< CharSeq > &chew, size_t &off)
Search a terminal portion of a CharSeq for any identifier.
size_t find_first_in(std::string const &id, chewer< CharSeq > &chew)
Find the first occurrence of an identifier within a terminal segment a CharSeq
std::string read(chewer< CharSeq > &chew)
Read an identifier from an chewer<CharSeq>
bool is_valid_char(char ch)
Say whether a character can occur in an identifier.
`template struct chewer<CharSeq> is a cursor-like type that is associated with a character-sequence t...