Template Class spf_lexer¶
Defined in File parse.h
Class Documentation¶
-
template<typename Reader>
class spf_lexer¶ The tokenizer over a file_reader. scan() hands every token to a consumer’s callbacks; there is no token object. A consumer declares three constexpr flags (decode_strings, decode_values, keep_keywords) that decide what the loop decodes and copies, and each callback returns whether to go on: operator_(pos, char), identifier(pos, name), string(pos, text) or string(begin, end), keyword(pos, text), enumeration(pos, text), binary(pos, text), boolean(pos, char), integer(pos, value), real(pos, value), literal(pos).