+%option noinput nounput
+
%{/* deflex.l - Lexer for .def files */
-/* Copyright 1995, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2007
- Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of GNU Binutils.
#include "defparse.h"
#include "dlltool.h"
-#define YY_NO_UNPUT
-
int linenumber;
%}
[0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0);
return NUMBER; }
-(@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\-\_@?]* {
+(@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\<\>\-\_@?]* {
yylval.id = xstrdup (yytext);
return ID;
}
"\t" { }
"\r" { }
"\n" { linenumber ++ ;}
+"==" { return EQUAL;}
"=" { return '=';}
"." { return '.';}
"@" { return '@';}