LEX_ERROR_TERMINAL, /* Discard input line and continue reading. */
LEX_ERROR_CONTINUE, /* Continue to next command, except for
cascading failures. */
- LEX_ERROR_STOP /* Stop processing. */
+ LEX_ERROR_IGNORE, /* Continue, even for cascading failures. */
+ LEX_ERROR_STOP, /* Stop processing. */
};
/* Reads a single syntax file as a stream of bytes encoded in UTF-8.
/* Macros. */
void lex_define_macro (struct lexer *, struct macro *);
+const struct macro_set *lex_get_macros (const struct lexer *);
/* Files. */
void lex_include (struct lexer *, struct lex_reader *);
bool lex_match_int (struct lexer *, int);
bool lex_at_phrase (struct lexer *, const char *s);
bool lex_match_phrase (struct lexer *, const char *s);
+bool lex_force_match_phrase (struct lexer *, const char *s);
/* Forcible matching functions. */
bool lex_force_match (struct lexer *, enum token_type) WARN_UNUSED_RESULT;
const char *lex_get_file_name (const struct lexer *);
struct msg_location *lex_get_location (const struct lexer *, int n0, int n1);
const char *lex_get_encoding (const struct lexer *);
+const struct lex_source *lex_source (const struct lexer *);
/* Issuing errors and warnings. */
void lex_error (struct lexer *, const char *, ...) PRINTF_FORMAT (2, 3);