improve macro error messages
[pspp] / src / language / lexer / macro.h
index 23ae1d9a1869e4f618f62ce0a80874ae666dfa3c..c10ce8e3cd2cdc4f40260698e41eed65e8c348e9 100644 (file)
@@ -36,6 +36,10 @@ struct macro_token
 void macro_token_copy (struct macro_token *, const struct macro_token *);
 void macro_token_uninit (struct macro_token *);
 
+void macro_token_to_representation (struct macro_token *, struct string *);
+
+bool is_macro_keyword (struct substring);
+
 struct macro_tokens
   {
     struct macro_token *mts;
@@ -51,6 +55,9 @@ void macro_tokens_add (struct macro_tokens *, const struct macro_token *);
 void macro_tokens_from_string (struct macro_tokens *, const struct substring,
                                enum segmenter_mode);
 
+void macro_tokens_to_representation (struct macro_tokens *, struct string *,
+                                     size_t *ofs, size_t *len);
+
 void macro_tokens_print (const struct macro_tokens *, FILE *);
 
 struct macro_param