+\f
+/* A simplified lexer for handling syntax in a string. */
+
+struct string_lexer
+ {
+ const char *input;
+ size_t length;
+ size_t offset;
+ struct segmenter segmenter;
+ };
+
+void string_lexer_init (struct string_lexer *, const char *input,
+ enum segmenter_mode);
+bool string_lexer_next (struct string_lexer *, struct token *);