save_token (lexer);
lexer->token = t;
}
-
-/* Makes the current token become the next token to be read; the
- current token is set to the identifier ID. */
-void
-lex_put_back_id (struct lexer *lexer, const char *id)
-{
- assert (lex_id_to_token (ss_cstr (id)) == T_ID);
- save_token (lexer);
- lexer->token = T_ID;
- ds_assign_cstr (&lexer->tokstr, id);
-}
\f
/* Weird line processing functions. */
/* Weird token functions. */
enum token_type lex_look_ahead (struct lexer *);
void lex_put_back (struct lexer *, enum token_type);
-void lex_put_back_id (struct lexer *, const char *tokid);
/* Weird line processing functions. */
const char *lex_entire_line (const struct lexer *);