lexer: New function lex_error_expecting().
[pspp-builds.git] / src / language / lexer / lexer.h
index b9e936bf994c67cdb7d6952950196f57170b3cf3..b0787e8f44eb4f55a4da4799aa62fdec96a7f223 100644 (file)
@@ -72,7 +72,7 @@ struct lex_reader_class
 
        The caller will free the 'file_name' member of READER, so the
        implementation should not do so. */
-    void (*close) (struct lex_reader *reader);
+    void (*destroy) (struct lex_reader *reader);
   };
 
 /* Helper functions for lex_reader. */
@@ -155,6 +155,8 @@ void lex_next_error (struct lexer *, int n0, int n1, const char *, ...)
   PRINTF_FORMAT (4, 5);
 int lex_end_of_command (struct lexer *);
 
+void lex_error_expecting (struct lexer *, const char *, ...) SENTINEL(0);
+
 void lex_sbc_only_once (const char *);
 void lex_sbc_missing (struct lexer *, const char *);