+%option noyywrap
+
/* bfin-lex.l ADI Blackfin lexer
- Copyright 2005, 2006, 2007, 2008, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2005-2021 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
%{
-
-#include "as.h"
#include "bfin-defs.h"
-#include "bfin-parse.h"
+#include "config/bfin-parse.h"
static long parse_int (char **end);
static int parse_halfreg (Register *r, int cl, char *hr);
#define _REG yylval.reg
+/* Flex generates static functions "input" & "unput" which are not used. */
+#define YY_NO_INPUT
+#define YY_NO_UNPUT
%}
[bB][yY][tT][eE][oO][pP]16[mM] return BYTEOP16M;
[bB][yY][tT][eE][oO][pP]16[pP] return BYTEOP16P;
[bB][yY][tT][eE][oO][pP]3[pP] return BYTEOP3P;
-[bB][yY][tT][eE][oO][pP]2[mM] return BYTEOP2M;
[bB][yY][tT][eE][oO][pP]2[pP] return BYTEOP2P;
[bB][yY][tT][eE][oO][pP]1[pP] return BYTEOP1P;
[bB][yY] return BY;
char fmt = '\0';
int not_done = 1;
int shiftvalue = 0;
- char * char_bag;
- long value = 0;
+ const char *char_bag;
+ unsigned long value = 0;
char *arg = *end;
while (*arg && *arg == ' ')
fmt = 'd';
break;
- case '0': /* Accept different formated integers hex octal and binary. */
+ case '0': /* Accept different formatted integers hex octal and binary. */
{
char c = *++arg;
arg++;
{
BEGIN KEYWORD;
}
-
-
-#ifndef yywrap
-int
-yywrap ()
-{
- return 1;
-}
-#endif