Macro arguments and the !length function work.
[pspp] / src / language / lexer / token.c
index 12ab3d8b08396222d1caa2e284d386f0f939af1b..7becaaffad0ddbffdb5466f03293442eb2511ce7 100644 (file)
@@ -229,3 +229,10 @@ tokens_add (struct tokens *tokens, const struct token *t)
 
   token_copy (&tokens->tokens[tokens->n++], t);
 }
+
+void
+tokens_print (const struct tokens *tokens, FILE *stream)
+{
+  for (size_t i = 0; i < tokens->n; i++)
+    token_print (&tokens->tokens[i], stream);
+}