projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* arm-linux-tdep.c: Include "auxv.h".
[deliverable/binutils-gdb.git]
/
gas
/
itbl-parse.y
diff --git
a/gas/itbl-parse.y
b/gas/itbl-parse.y
index 7966ee8fe1b5a21387bc17ec751135dea70d15f2..cf757fb66eb8502152ef9d15f44fdd6447941bee 100644
(file)
--- a/
gas/itbl-parse.y
+++ b/
gas/itbl-parse.y
@@
-1,11
+1,11
@@
/* itbl-parse.y
/* itbl-parse.y
- Copyright
(C) 1997
Free Software Foundation, Inc.
+ Copyright
1997, 2002, 2003, 2005, 2006, 2007
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version
2
, or (at your option)
+ the Free Software Foundation; either version
3
, or (at your option)
any later version.
GAS is distributed in the hope that it will be useful,
any later version.
GAS is distributed in the hope that it will be useful,
@@
-15,8
+15,8
@@
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to the Free
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to the Free
- Software Foundation, 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Software Foundation, 5
1 Franklin Street - Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
%{
%{
@@
-152,7
+152,7
@@
Here is the grammar for the coprocessor table:
char -> any printable character
ltr -> ['a'..'z'|'A'..'Z']
dec -> ['0'..'9']* ; value in decimal
char -> any printable character
ltr -> ['a'..'z'|'A'..'Z']
dec -> ['0'..'9']* ; value in decimal
- hex -> '0x'['0'..'9' | 'a'..'f' | 'A'..'F']* ; value in hex
i
decimal
+ hex -> '0x'['0'..'9' | 'a'..'f' | 'A'..'F']* ; value in hex
a
decimal
Examples
Examples
@@
-239,14
+239,15
@@
was deleted from the original format such that we now count the fields.
----
FIXME! should really change lexical analyzer
----
FIXME! should really change lexical analyzer
-to recognize 'dreg' etc. in context sens
a
tive way.
+to recognize 'dreg' etc. in context sens
i
tive way.
Currently function names or mnemonics may be incorrectly parsed as keywords
FIXME! hex is ambiguous with any digit
*/
Currently function names or mnemonics may be incorrectly parsed as keywords
FIXME! hex is ambiguous with any digit
*/
-#include <stdio.h>
+#include "as.h"
+#include "itbl-lex.h"
#include "itbl-ops.h"
/* #define DEBUG */
#include "itbl-ops.h"
/* #define DEBUG */
@@
-273,10
+274,7
@@
FIXME! hex is ambiguous with any digit
static int sbit, ebit;
static struct itbl_entry *insn=0;
static int sbit, ebit;
static struct itbl_entry *insn=0;
-extern int insntbl_line;
-int yyparse PARAMS ((void));
-int yylex PARAMS ((void));
-static int yyerror PARAMS ((const char *));
+static int yyerror (const char *);
%}
%}
@@
-321,6
+319,7
@@
entry:
insn=itbl_add_insn ($1, $3, $4, sbit, ebit, $6);
}
fieldspecs NL
insn=itbl_add_insn ($1, $3, $4, sbit, ebit, $6);
}
fieldspecs NL
+ {}
| NL
| error NL
;
| NL
| error NL
;
This page took
0.023967 seconds
and
4
git commands to generate.