Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6070>
#include "parser.h"
#include "asm.h"
+#define YY_NO_INPUT
+#define YY_NO_UNPUT
+
#define TOKEN(t) (yylval.tok = t)
extern YYSTYPE yylval;
const char *str;
}
-%{
-static void print_token(FILE *file, int type, YYSTYPE value)
-{
- fprintf(file, "\ntype: %d\n", type);
-}
-
-#define YYPRINT(file, type, value) print_token(file, type, value)
-%}
-
%token <num> T_INT
%token <num> T_HEX
%token <num> T_CONTROL_REG