|
GDB (xrefs)
|
#include "defs.h"#include "gdb_string.h"#include <ctype.h>#include "expression.h"#include "value.h"#include "parser-defs.h"#include "language.h"#include "jv-lang.h"#include "bfd.h"#include "symfile.h"#include "objfiles.h"#include "block.h"#include "completer.h"Go to the source code of this file.
Classes | |
| union | YYSTYPE |
| union | yyalloc |
| struct | token |
Defines | |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "2.5" |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYPURE 0 |
| #define | YYPUSH 0 |
| #define | YYPULL 1 |
| #define | YYLSP_NEEDED 0 |
| #define | parse_type builtin_type (parse_gdbarch) |
| #define | parse_java_type builtin_java_type (parse_gdbarch) |
| #define | yymaxdepth java_maxdepth |
| #define | yyparse java_parse |
| #define | yylex java_lex |
| #define | yyerror java_error |
| #define | yylval java_lval |
| #define | yychar java_char |
| #define | yydebug java_debug |
| #define | yypact java_pact |
| #define | yyr1 java_r1 |
| #define | yyr2 java_r2 |
| #define | yydef java_def |
| #define | yychk java_chk |
| #define | yypgo java_pgo |
| #define | yyact java_act |
| #define | yyexca java_exca |
| #define | yyerrflag java_errflag |
| #define | yynerrs java_nerrs |
| #define | yyps java_ps |
| #define | yypv java_pv |
| #define | yys java_s |
| #define | yy_yys java_yys |
| #define | yystate java_state |
| #define | yytmp java_tmp |
| #define | yyv java_v |
| #define | yy_yyv java_yyv |
| #define | yyval java_val |
| #define | yylloc java_lloc |
| #define | yyreds java_reds /* With YYDEBUG defined */ |
| #define | yytoks java_toks /* With YYDEBUG defined */ |
| #define | yyname java_name /* With YYDEBUG defined */ |
| #define | yyrule java_rule /* With YYDEBUG defined */ |
| #define | yylhs java_yylhs |
| #define | yylen java_yylen |
| #define | yydefred java_yydefred |
| #define | yydgoto java_yydgoto |
| #define | yysindex java_yysindex |
| #define | yyrindex java_yyrindex |
| #define | yygindex java_yygindex |
| #define | yytable java_yytable |
| #define | yycheck java_yycheck |
| #define | yyss java_yyss |
| #define | yysslim java_yysslim |
| #define | yyssp java_yyssp |
| #define | yystacksize java_yystacksize |
| #define | yyvs java_yyvs |
| #define | yyvsp java_yyvsp |
| #define | YYDEBUG 1 /* Default to yydebug support */ |
| #define | YYFPRINTF parser_fprintf |
| #define | YYERROR_VERBOSE 0 |
| #define | YYTOKEN_TABLE 0 |
| #define | YYTOKENTYPE |
| #define | INTEGER_LITERAL 258 |
| #define | FLOATING_POINT_LITERAL 259 |
| #define | IDENTIFIER 260 |
| #define | STRING_LITERAL 261 |
| #define | BOOLEAN_LITERAL 262 |
| #define | TYPENAME 263 |
| #define | NAME_OR_INT 264 |
| #define | ERROR 265 |
| #define | LONG 266 |
| #define | SHORT 267 |
| #define | BYTE 268 |
| #define | INT 269 |
| #define | CHAR 270 |
| #define | BOOLEAN 271 |
| #define | DOUBLE 272 |
| #define | FLOAT 273 |
| #define | VARIABLE 274 |
| #define | ASSIGN_MODIFY 275 |
| #define | SUPER 276 |
| #define | NEW 277 |
| #define | OROR 278 |
| #define | ANDAND 279 |
| #define | NOTEQUAL 280 |
| #define | EQUAL 281 |
| #define | GEQ 282 |
| #define | LEQ 283 |
| #define | RSH 284 |
| #define | LSH 285 |
| #define | DECREMENT 286 |
| #define | INCREMENT 287 |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYSIZE_T unsigned int |
| #define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define | YY_(msgid) msgid |
| #define | YYUSE(e) ((void) (e)) |
| #define | YYID(n) (n) |
| #define | YYSTACK_ALLOC YYMALLOC |
| #define | YYSTACK_FREE YYFREE |
| #define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define | YYMALLOC xmalloc |
| #define | YYFREE xfree |
| #define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define | YYSTACK_BYTES(N) |
| #define | YYCOPY_NEEDED 1 |
| #define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
| #define | YYCOPY(To, From, Count) |
| #define | YYFINAL 98 |
| #define | YYLAST 373 |
| #define | YYNTOKENS 56 |
| #define | YYNNTS 58 |
| #define | YYNRULES 132 |
| #define | YYNSTATES 209 |
| #define | YYUNDEFTOK 2 |
| #define | YYMAXUTOK 287 |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYPACT_NINF -145 |
| #define | YYTABLE_NINF -132 |
| #define | yypact_value_is_default(yystate) ((yystate) == (-145)) |
| #define | yytable_value_is_error(yytable_value) YYID (0) |
| #define | yyerrok (yyerrstatus = 0) |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | YYEMPTY (-2) |
| #define | YYEOF 0 |
| #define | YYACCEPT goto yyacceptlab |
| #define | YYABORT goto yyabortlab |
| #define | YYERROR goto yyerrorlab |
| #define | YYFAIL goto yyerrlab |
| #define | YYRECOVERING() (!!yyerrstatus) |
| #define | YYBACKUP(Token, Value) |
| #define | YYTERROR 1 |
| #define | YYERRCODE 256 |
| #define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
| #define | YYLLOC_DEFAULT(Current, Rhs, N) |
| #define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| #define | YYLEX yylex () |
| #define | YYDPRINTF(Args) |
| #define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | YYINITDEPTH 200 |
| #define | YYMAXDEPTH 10000 |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
Typedefs | |
| typedef union YYSTYPE | YYSTYPE |
| typedef unsigned char | yytype_uint8 |
| typedef short int | yytype_int8 |
| typedef unsigned short int | yytype_uint16 |
| typedef short int | yytype_int16 |
Enumerations | |
| enum | yytokentype { INT = 258, NULL_PTR = 259, CHARLIT = 260, FLOAT = 261, TRUEKEYWORD = 262, FALSEKEYWORD = 263, COLONCOLON = 264, STRING = 265, NAME = 266, DOT_ID = 267, DOT_ALL = 268, SPECIAL_VARIABLE = 269, ASSIGN = 270, ELSE = 271, THEN = 272, XOR = 273, OR = 274, _AND_ = 275, DOTDOT = 276, IN = 277, GEQ = 278, LEQ = 279, NOTEQUAL = 280, UNARY = 281, REM = 282, MOD = 283, NOT = 284, ABS = 285, STARSTAR = 286, VAR = 287, ARROW = 288, TICK_LENGTH = 289, TICK_LAST = 290, TICK_FIRST = 291, TICK_ADDRESS = 292, TICK_ACCESS = 293, TICK_MODULUS = 294, TICK_MIN = 295, TICK_MAX = 296, TICK_VAL = 297, TICK_TAG = 298, TICK_SIZE = 299, TICK_RANGE = 300, TICK_POS = 301, NEW = 302, OTHERS = 303, INT = 258, FLOAT = 259, DECFLOAT = 260, STRING = 261, NSSTRING = 262, SELECTOR = 263, CHAR = 264, NAME = 265, UNKNOWN_CPP_NAME = 266, COMPLETE = 267, TYPENAME = 268, CLASSNAME = 269, OBJC_LBRAC = 270, NAME_OR_INT = 271, OPERATOR = 272, STRUCT = 273, CLASS = 274, UNION = 275, ENUM = 276, SIZEOF = 277, UNSIGNED = 278, COLONCOLON = 279, TEMPLATE = 280, ERROR = 281, NEW = 282, DELETE = 283, REINTERPRET_CAST = 284, DYNAMIC_CAST = 285, STATIC_CAST = 286, CONST_CAST = 287, ENTRY = 288, TYPEOF = 289, DECLTYPE = 290, TYPEID = 291, SIGNED_KEYWORD = 292, LONG = 293, SHORT = 294, INT_KEYWORD = 295, CONST_KEYWORD = 296, VOLATILE_KEYWORD = 297, DOUBLE_KEYWORD = 298, VARIABLE = 299, ASSIGN_MODIFY = 300, TRUEKEYWORD = 301, FALSEKEYWORD = 302, ABOVE_COMMA = 303, OROR = 304, ANDAND = 305, NOTEQUAL = 306, EQUAL = 307, GEQ = 308, LEQ = 309, RSH = 310, LSH = 311, DECREMENT = 312, INCREMENT = 313, UNARY = 314, DOT_STAR = 315, ARROW_STAR = 316, ARROW = 317, BLOCKNAME = 318, FILENAME = 319, DOTDOTDOT = 320, INT = 258, FLOAT = 259, NAME = 260, STRUCT = 261, CLASS = 262, UNION = 263, ENUM = 264, SIZEOF = 265, UNSIGNED = 266, COLONCOLON = 267, TEMPLATE = 268, ERROR = 269, NEW = 270, DELETE = 271, OPERATOR = 272, STATIC_CAST = 273, REINTERPRET_CAST = 274, DYNAMIC_CAST = 275, SIGNED_KEYWORD = 276, LONG = 277, SHORT = 278, INT_KEYWORD = 279, CONST_KEYWORD = 280, VOLATILE_KEYWORD = 281, DOUBLE_KEYWORD = 282, BOOL = 283, ELLIPSIS = 284, RESTRICT = 285, VOID = 286, FLOAT_KEYWORD = 287, CHAR = 288, WCHAR_T = 289, ASSIGN_MODIFY = 290, TRUEKEYWORD = 291, FALSEKEYWORD = 292, DEMANGLER_SPECIAL = 293, CONSTRUCTION_VTABLE = 294, CONSTRUCTION_IN = 295, OROR = 296, ANDAND = 297, NOTEQUAL = 298, EQUAL = 299, GEQ = 300, LEQ = 301, RSH = 302, LSH = 303, DECREMENT = 304, INCREMENT = 305, UNARY = 306, ARROW = 307, INT = 258, FLOAT = 259, STRING_LITERAL = 260, BOOLEAN_LITERAL = 261, NAME = 262, TYPENAME = 263, NAME_OR_INT = 264, SIZEOF = 265, ERROR = 266, INT_KEYWORD = 267, INT_S2_KEYWORD = 268, LOGICAL_S1_KEYWORD = 269, LOGICAL_S2_KEYWORD = 270, LOGICAL_S8_KEYWORD = 271, LOGICAL_KEYWORD = 272, REAL_KEYWORD = 273, REAL_S8_KEYWORD = 274, REAL_S16_KEYWORD = 275, COMPLEX_S8_KEYWORD = 276, COMPLEX_S16_KEYWORD = 277, COMPLEX_S32_KEYWORD = 278, BOOL_AND = 279, BOOL_OR = 280, BOOL_NOT = 281, CHARACTER = 282, VARIABLE = 283, ASSIGN_MODIFY = 284, ABOVE_COMMA = 285, NOTEQUAL = 286, EQUAL = 287, GEQ = 288, LEQ = 289, GREATERTHAN = 290, LESSTHAN = 291, RSH = 292, LSH = 293, STARSTAR = 294, UNARY = 295, INT = 258, FLOAT = 259, RAW_STRING = 260, STRING = 261, CHAR = 262, NAME = 263, TYPENAME = 264, COMPLETE = 265, NAME_OR_INT = 266, TRUE_KEYWORD = 267, FALSE_KEYWORD = 268, STRUCT_KEYWORD = 269, INTERFACE_KEYWORD = 270, TYPE_KEYWORD = 271, CHAN_KEYWORD = 272, SIZEOF_KEYWORD = 273, LEN_KEYWORD = 274, CAP_KEYWORD = 275, NEW_KEYWORD = 276, IOTA_KEYWORD = 277, NIL_KEYWORD = 278, CONST_KEYWORD = 279, DOTDOTDOT = 280, ENTRY = 281, ERROR = 282, BYTE_KEYWORD = 283, DOLLAR_VARIABLE = 284, ASSIGN_MODIFY = 285, ABOVE_COMMA = 286, OROR = 287, ANDAND = 288, ANDNOT = 289, NOTEQUAL = 290, EQUAL = 291, GEQ = 292, LEQ = 293, RSH = 294, LSH = 295, DECREMENT = 296, INCREMENT = 297, UNARY = 298, LEFT_ARROW = 299, INTEGER_LITERAL = 258, FLOATING_POINT_LITERAL = 259, IDENTIFIER = 260, STRING_LITERAL = 261, BOOLEAN_LITERAL = 262, TYPENAME = 263, NAME_OR_INT = 264, ERROR = 265, LONG = 266, SHORT = 267, BYTE = 268, INT = 269, CHAR = 270, BOOLEAN = 271, DOUBLE = 272, FLOAT = 273, VARIABLE = 274, ASSIGN_MODIFY = 275, SUPER = 276, NEW = 277, OROR = 278, ANDAND = 279, NOTEQUAL = 280, EQUAL = 281, GEQ = 282, LEQ = 283, RSH = 284, LSH = 285, DECREMENT = 286, INCREMENT = 287, INT = 258, HEX = 259, ERROR = 260, UINT = 261, M2_TRUE = 262, M2_FALSE = 263, CHAR = 264, FLOAT = 265, STRING = 266, NAME = 267, BLOCKNAME = 268, IDENT = 269, VARNAME = 270, TYPENAME = 271, SIZE = 272, CAP = 273, ORD = 274, HIGH = 275, ABS = 276, MIN_FUNC = 277, MAX_FUNC = 278, FLOAT_FUNC = 279, VAL = 280, CHR = 281, ODD = 282, TRUNC = 283, TSIZE = 284, INC = 285, DEC = 286, INCL = 287, EXCL = 288, COLONCOLON = 289, INTERNAL_VAR = 290, ABOVE_COMMA = 291, ASSIGN = 292, IN = 293, NOTEQUAL = 294, GEQ = 295, LEQ = 296, OROR = 297, LOGICAL_AND = 298, MOD = 299, DIV = 300, UNARY = 301, DOT = 302, NOT = 303, QID = 304, INT = 258, FLOAT = 259, STRING = 260, FIELDNAME = 261, COMPLETE = 262, NAME = 263, TYPENAME = 264, NAME_OR_INT = 265, STRUCT = 266, CLASS = 267, SIZEOF = 268, COLONCOLON = 269, ERROR = 270, VARIABLE = 271, THIS = 272, TRUEKEYWORD = 273, FALSEKEYWORD = 274, ABOVE_COMMA = 275, ASSIGN = 276, NOT = 277, OR = 278, XOR = 279, ANDAND = 280, NOTEQUAL = 281, GEQ = 282, LEQ = 283, MOD = 284, DIV = 285, RSH = 286, LSH = 287, DECREMENT = 288, INCREMENT = 289, UNARY = 290, ARROW = 291, BLOCKNAME = 292 } |
Functions | |
| int | yyparse (void) |
| static int | yylex (void) |
| void | yyerror (char *) |
| static struct type * | java_type_from_name (struct stoken) |
| static void | push_expression_name (struct stoken) |
| static void | push_fieldnames (struct stoken) |
| static struct expression * | copy_exp (struct expression *, int) |
| static void | insert_exp (int, struct expression *) |
| static int | parse_number (const char *, int, int, YYSTYPE *) |
| static void | yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep) |
| static void | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep) |
| static void | yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
| static void | yy_reduce_print (YYSTYPE *yyvsp, int yyrule) |
| static void | yydestruct (char *yymsg, int yytype, YYSTYPE *yyvaluep) const |
| static int | push_variable (struct stoken name) |
| static void | push_qualified_expression_name (struct stoken name, int dot_index) |
Variables | |
| static const yytype_uint8 | yytranslate [] |
| static const yytype_uint16 | yyprhs [] |
| static const yytype_int8 | yyrhs [] |
| static const yytype_uint16 | yyrline [] |
| static const char *const | yytname [] |
| static const yytype_uint8 | yyr1 [] |
| static const yytype_uint8 | yyr2 [] |
| static const yytype_uint8 | yydefact [] |
| static const yytype_int16 | yydefgoto [] |
| static const yytype_int16 | yypact [] |
| static const yytype_int16 | yypgoto [] |
| static const yytype_int16 | yytable [] |
| static const yytype_int16 | yycheck [] |
| static const yytype_uint8 | yystos [] |
| int | yydebug |
| int | yychar |
| YYSTYPE | yylval |
| int | yynerrs |
| static struct token | tokentab3 [] |
| static struct token | tokentab2 [] |
| #define ASSIGN_MODIFY 275 |
| #define BOOLEAN_LITERAL 262 |
| #define FLOATING_POINT_LITERAL 259 |
Definition at line 226 of file jv-exp.c.
Referenced by parse_number().
| #define IDENTIFIER 260 |
| #define INTEGER_LITERAL 258 |
Definition at line 225 of file jv-exp.c.
Referenced by parse_number(), and yylex().
| #define NAME_OR_INT 264 |
| #define parse_java_type builtin_java_type (parse_gdbarch) |
Definition at line 87 of file jv-exp.c.
Referenced by parse_number(), and yylex().
| #define parse_type builtin_type (parse_gdbarch) |
Definition at line 86 of file jv-exp.c.
Referenced by parse_number().
| #define STRING_LITERAL 261 |
| #define YY_LOCATION_PRINT | ( | File, | |
| Loc | |||
| ) | ((void) 0) |
| #define YY_REDUCE_PRINT | ( | Rule | ) |
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Type, | |||
| Value, | |||
| Location | |||
| ) |
do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0))
Definition at line 1048 of file jv-exp.c.
Referenced by yydestruct().
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
| #define YYBISON_VERSION "2.5" |
| #define YYCOPY | ( | To, | |
| From, | |||
| Count | |||
| ) |
| #define YYCOPY_NEEDED 1 |
| #define YYDPRINTF | ( | Args | ) |
| #define yyerror java_error |
| #define YYERROR_VERBOSE 0 |
| #define YYFPRINTF parser_fprintf |
Definition at line 147 of file jv-exp.c.
Referenced by yy_reduce_print(), yy_stack_print(), and yy_symbol_print().
| #define YYINITDEPTH 200 |
| #define YYLLOC_DEFAULT | ( | Current, | |
| Rhs, | |||
| N | |||
| ) |
do \
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))
| #define YYLSP_NEEDED 0 |
| #define yymaxdepth java_maxdepth |
| #define YYMAXDEPTH 10000 |
| #define YYNTOKENS 56 |
Definition at line 527 of file jv-exp.c.
Referenced by yy_symbol_print(), and yy_symbol_value_print().
| #define YYPACT_NINF -145 |
| #define yypact_value_is_default | ( | yystate | ) | ((yystate) == (-145)) |
| #define yyparse java_parse |
| #define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 126 of file jv-exp.c.
Referenced by yy_reduce_print().
| #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define YYSKELETON_NAME "yacc.c" |
| #define YYSTACK_ALLOC YYMALLOC |
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define YYSTACK_BYTES | ( | N | ) |
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM)
| #define YYSTACK_FREE YYFREE |
| #define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0))
| #define yystacksize java_yystacksize |
| #define YYSTYPE_IS_DECLARED 1 |
| #define YYSTYPE_IS_TRIVIAL 1 |
| #define YYTABLE_NINF -132 |
| #define yytable_value_is_error | ( | yytable_value | ) | YYID (0) |
| #define YYTOKEN_TABLE 0 |
| #define YYTOKENTYPE |
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define YYUNDEFTOK 2 |
| #define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 369 of file jv-exp.c.
Referenced by yy_symbol_value_print(), and yydestruct().
| typedef short int yytype_int16 |
| typedef short int yytype_int8 |
| typedef unsigned short int yytype_uint16 |
| typedef unsigned char yytype_uint8 |
| enum yytokentype |
| static struct expression * copy_exp | ( | struct expression * | expr, |
| int | endpos | ||
| ) | [static, read] |
Definition at line 3345 of file jv-exp.c.
References expression::elts, EXP_ELEM_TO_BYTES, len, length_of_subexp(), memcpy(), and xmalloc().
| static void insert_exp | ( | int | pos, |
| struct expression * | new | ||
| ) | [static] |
Definition at line 3359 of file jv-exp.c.
References expression::elts, EXP_ELEM_TO_BYTES, expout, expout_ptr, expout_size, max, memcpy(), and xrealloc().
| static struct type * java_type_from_name | ( | struct stoken | name | ) | [static, read] |
Definition at line 3142 of file jv-exp.c.
References _, copy_name(), error(), java_lookup_class(), TYPE_CODE, and TYPE_CODE_STRUCT.
Definition at line 2627 of file jv-exp.c.
References _, YYSTYPE::dval, ERROR, error(), FLOATING_POINT_LITERAL, input_radix, INTEGER_LITERAL, parse_float(), parse_java_type, parse_type, type, YYSTYPE::type, YYSTYPE::typed_val_float, YYSTYPE::typed_val_int, ULONGEST, and YYSTYPE::val.
Referenced by yylex().
| static void push_expression_name | ( | struct stoken | name | ) | [static] |
Definition at line 3292 of file jv-exp.c.
References _, copy_name(), error(), have_full_symbols(), have_partial_symbols(), java_lookup_class(), stoken::length, lookup_bound_minimal_symbol(), stoken::ptr, push_qualified_expression_name(), push_variable(), write_exp_elt_opcode(), write_exp_elt_type(), and write_exp_msymbol().
| static void push_fieldnames | ( | struct stoken | name | ) | [static] |
Definition at line 3201 of file jv-exp.c.
References stoken::length, stoken::ptr, write_exp_elt_opcode(), and write_exp_string().
Referenced by push_qualified_expression_name().
| static void push_qualified_expression_name | ( | struct stoken | name, |
| int | dot_index | ||
| ) | [static] |
Definition at line 3226 of file jv-exp.c.
References _, copy_name(), error(), java_lookup_class(), stoken::length, stoken::ptr, push_fieldnames(), push_variable(), write_exp_elt_opcode(), write_exp_elt_type(), and write_exp_string().
Referenced by push_expression_name().
| static int push_variable | ( | struct stoken | name | ) | [static] |
Definition at line 3155 of file jv-exp.c.
References block_found, contained_in(), copy_name(), expression_context_block, innermost_block, LOC_TYPEDEF, lookup_symbol(), SYMBOL_CLASS, symbol_read_needs_frame(), field_of_this_result::type, VAR_DOMAIN, write_exp_elt_block(), write_exp_elt_opcode(), write_exp_elt_sym(), and write_exp_string().
Referenced by push_expression_name(), and push_qualified_expression_name().
| static void yy_reduce_print | ( | YYSTYPE * | yyvsp, |
| int | yyrule | ||
| ) | [static] |
Definition at line 1160 of file jv-exp.c.
References yy_symbol_print(), YYFPRINTF, and yyrule.
| static void yy_stack_print | ( | yytype_int16 * | yybottom, |
| yytype_int16 * | yytop | ||
| ) | [static] |
| static void yy_symbol_print | ( | FILE * | yyoutput, |
| int | yytype, | ||
| YYSTYPE const * const | yyvaluep | ||
| ) | [static] |
Definition at line 1103 of file jv-exp.c.
References yy_symbol_value_print(), YYFPRINTF, and YYNTOKENS.
Referenced by yy_reduce_print().
| static void yy_symbol_value_print | ( | FILE * | yyoutput, |
| int | yytype, | ||
| YYSTYPE const * const | yyvaluep | ||
| ) | [static] |
| static void yydestruct | ( | char * | yymsg, |
| int | yytype, | ||
| YYSTYPE * | yyvaluep | ||
| ) | const [static] |
Definition at line 1464 of file jv-exp.c.
References YY_SYMBOL_PRINT, and YYUSE.
| void yyerror | ( | char * | msg | ) |
Definition at line 2784 of file jv-exp.c.
References _, BOOLEAN, BOOLEAN_LITERAL, BYTE, CHAR, comma_terminates, DOUBLE, ERROR, error(), FLOAT, IDENTIFIER, input_radix, INT, INTEGER_LITERAL, stoken::length, lexptr, LONG, YYSTYPE::lval, memcpy(), NAME_OR_INT, NEW, YYSTYPE::opcode, token::opcode, p, paren_depth, parse_escape(), parse_gdbarch, parse_java_type, parse_number(), prev_lexptr, stoken::ptr, SHORT, skip_quoted(), STRING_LITERAL, SUPER, YYSTYPE::sval, tempbuf, tempbufindex, tempbufsize, token::token, YYSTYPE::type, YYSTYPE::typed_val_int, YYSTYPE::val, VARIABLE, write_dollar_variable(), and xrealloc().
{
{"+=", ASSIGN_MODIFY, BINOP_ADD},
{"-=", ASSIGN_MODIFY, BINOP_SUB},
{"*=", ASSIGN_MODIFY, BINOP_MUL},
{"/=", ASSIGN_MODIFY, BINOP_DIV},
{"%=", ASSIGN_MODIFY, BINOP_REM},
{"|=", ASSIGN_MODIFY, BINOP_BITWISE_IOR},
{"&=", ASSIGN_MODIFY, BINOP_BITWISE_AND},
{"^=", ASSIGN_MODIFY, BINOP_BITWISE_XOR},
{"++", INCREMENT, BINOP_END},
{"--", DECREMENT, BINOP_END},
{"&&", ANDAND, BINOP_END},
{"||", OROR, BINOP_END},
{"<<", LSH, BINOP_END},
{">>", RSH, BINOP_END},
{"==", EQUAL, BINOP_END},
{"!=", NOTEQUAL, BINOP_END},
{"<=", LEQ, BINOP_END},
{">=", GEQ, BINOP_END}
}
{
{">>=", ASSIGN_MODIFY, BINOP_RSH},
{"<<=", ASSIGN_MODIFY, BINOP_LSH}
}
const yytype_int16 yycheck[] [static] |
const yytype_uint8 yydefact[] [static] |
{
0, 8, 10, 28, 7, 11, 9, 20, 18, 17,
19, 21, 14, 23, 22, 74, 0, 0, 0, 0,
0, 0, 0, 0, 46, 0, 0, 0, 3, 4,
12, 39, 5, 13, 15, 16, 6, 73, 128, 30,
29, 2, 72, 37, 0, 41, 38, 42, 65, 43,
44, 87, 75, 76, 94, 79, 80, 84, 90, 98,
101, 104, 109, 112, 114, 116, 118, 120, 122, 124,
132, 125, 0, 35, 0, 0, 0, 28, 0, 25,
0, 24, 29, 9, 74, 73, 42, 44, 81, 82,
83, 86, 85, 61, 73, 0, 88, 89, 1, 0,
26, 0, 0, 64, 27, 0, 0, 0, 0, 49,
51, 78, 77, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 32, 33, 63, 0, 0, 0,
61, 55, 61, 51, 0, 60, 0, 0, 40, 58,
0, 34, 0, 36, 62, 0, 0, 47, 45, 52,
0, 95, 96, 97, 99, 100, 103, 102, 105, 106,
108, 107, 111, 110, 113, 115, 117, 119, 0, 121,
127, 126, 70, 51, 0, 0, 56, 53, 54, 0,
0, 0, 92, 59, 69, 51, 71, 50, 66, 0,
0, 57, 48, 91, 93, 0, 123, 68, 67
}
const yytype_int16 yydefgoto[] [static] |
const yytype_int16 yypact[] [static] |
{
215, -145, -145, -5, -145, -145, 1, -145, -145, -145,
-145, -145, -145, -145, -145, -7, -19, 279, 50, 50,
50, 50, 50, 215, -145, 50, 50, 46, -145, -145,
-145, -145, -9, -145, -145, -145, -145, 87, -145, -145,
12, 44, 5, 16, 319, -145, -145, 28, -145, -145,
38, 29, -145, -145, -145, -145, -145, -145, -145, 99,
53, 85, 52, 94, 66, 41, 71, 74, 122, -145,
-145, -145, 40, -145, 26, 319, 26, -145, 59, 59,
67, 82, -145, -145, 111, 107, -145, -145, -145, -145,
-145, -145, -145, -9, 87, 68, -145, -145, -145, 79,
91, 26, 267, -145, 91, 319, 26, 319, -18, -145,
319, -145, -145, 50, 50, 50, 50, 50, 50, 50,
50, 50, 50, 50, 50, 50, 50, 50, 50, 50,
319, 50, 50, 50, -145, -145, -145, 112, 126, 319,
128, -145, 128, 319, 319, 91, 127, -31, 193, -145,
125, -145, 129, -145, 131, 130, 319, -145, -145, 157,
135, -145, -145, -145, 99, 99, 53, 53, 85, 85,
85, 85, 52, 52, 94, 66, 41, 71, 132, 74,
-145, -145, -145, 319, 134, 267, -145, -145, -145, 139,
50, 193, -145, -145, -145, 319, -145, -145, -145, 50,
141, -145, -145, -145, -145, 144, -145, -145, -145
}
const yytype_int16 yypgoto[] [static] |
{
-145, -145, -145, -145, -145, -145, -3, -145, -145, -145,
-145, -145, -145, 11, -145, -64, 0, -145, -145, -145,
-145, -145, -145, 150, -134, -145, 124, -116, -29, -99,
6, -145, -145, -145, 22, -145, -145, -145, 58, -145,
-145, -144, -145, 43, 49, -2, 45, 78, 81, 83,
77, 92, -145, -131, -145, -145, -145, 7
}
const yytype_uint16 yyprhs[] [static] |
{
0, 0, 3, 5, 7, 9, 11, 13, 15, 17,
19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
39, 41, 43, 45, 47, 49, 51, 54, 57, 59,
61, 63, 65, 67, 69, 73, 75, 79, 81, 83,
85, 89, 91, 93, 95, 97, 101, 103, 105, 111,
113, 117, 118, 120, 125, 130, 132, 135, 139, 142,
146, 148, 149, 153, 157, 160, 161, 166, 173, 180,
185, 190, 195, 197, 199, 201, 203, 205, 208, 211,
213, 215, 218, 221, 224, 226, 229, 232, 234, 237,
240, 242, 248, 253, 259, 261, 265, 269, 273, 275,
279, 283, 285, 289, 293, 295, 299, 303, 307, 311,
313, 317, 321, 323, 327, 329, 333, 335, 339, 341,
345, 347, 351, 353, 359, 361, 363, 367, 371, 373,
375, 377, 379
}
const yytype_uint8 yyr1[] [static] |
{
0, 56, 57, 57, 58, 59, 59, 60, 61, 61,
61, 61, 61, 62, 62, 63, 63, 64, 64, 64,
64, 64, 65, 65, 66, 67, 68, 68, 69, 69,
70, 70, 71, 71, 72, 73, 73, 74, 74, 75,
75, 75, 75, 75, 75, 75, 76, 77, 78, 79,
79, 80, 80, 81, 81, 82, 82, 83, 84, 84,
85, 85, 86, 86, 87, 89, 88, 88, 88, 90,
90, 90, 91, 91, 91, 91, 91, 92, 93, 94,
94, 94, 94, 94, 94, 95, 96, 97, 97, 97,
97, 98, 98, 98, 99, 99, 99, 99, 100, 100,
100, 101, 101, 101, 102, 102, 102, 102, 102, 103,
103, 103, 104, 104, 105, 105, 106, 106, 107, 107,
108, 108, 109, 109, 110, 110, 111, 111, 112, 112,
112, 112, 113
}
const yytype_uint8 yyr2[] [static] |
{
0, 2, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 2, 2, 1, 1,
1, 1, 1, 1, 3, 1, 3, 1, 1, 1,
3, 1, 1, 1, 1, 3, 1, 1, 5, 1,
3, 0, 1, 4, 4, 1, 2, 3, 2, 3,
1, 0, 3, 3, 2, 0, 4, 6, 6, 4,
4, 4, 1, 1, 1, 1, 1, 2, 2, 1,
1, 2, 2, 2, 1, 2, 2, 1, 2, 2,
1, 5, 4, 5, 1, 3, 3, 3, 1, 3,
3, 1, 3, 3, 1, 3, 3, 3, 3, 1,
3, 3, 1, 3, 1, 3, 1, 3, 1, 3,
1, 3, 1, 5, 1, 1, 3, 3, 1, 1,
1, 1, 1
}
const yytype_int8 yyrhs[] [static] |
const yytype_uint16 yyrline[] [static] |
{
0, 212, 212, 213, 216, 225, 226, 230, 239, 244,
252, 257, 262, 273, 274, 279, 280, 284, 286, 288,
290, 292, 297, 299, 311, 316, 320, 322, 327, 328,
332, 333, 337, 338, 342, 368, 369, 374, 375, 379,
380, 381, 382, 383, 384, 385, 393, 398, 403, 409,
411, 417, 418, 422, 425, 431, 432, 436, 440, 442,
447, 449, 453, 455, 461, 467, 466, 472, 474, 479,
496, 498, 503, 504, 506, 508, 509, 513, 518, 523,
524, 525, 526, 528, 530, 534, 539, 544, 545, 547,
549, 553, 557, 577, 585, 586, 588, 590, 595, 596,
598, 603, 604, 606, 612, 613, 615, 617, 619, 625,
626, 628, 633, 634, 639, 640, 644, 645, 650, 651,
656, 657, 662, 663, 668, 669, 673, 675, 682, 684,
686, 687, 692
}
const yytype_uint8 yystos[] [static] |
{
0, 3, 4, 5, 6, 7, 9, 11, 12, 13,
14, 15, 16, 17, 18, 19, 21, 22, 39, 40,
41, 44, 45, 48, 50, 53, 54, 57, 58, 59,
60, 61, 62, 63, 64, 65, 68, 69, 70, 71,
72, 73, 74, 75, 76, 78, 81, 86, 87, 88,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
110, 111, 112, 113, 46, 47, 46, 5, 62, 66,
67, 69, 72, 9, 19, 69, 86, 90, 94, 94,
94, 94, 94, 62, 69, 113, 94, 94, 0, 47,
84, 46, 47, 48, 84, 23, 46, 47, 79, 113,
89, 44, 45, 41, 42, 43, 39, 40, 37, 38,
33, 34, 35, 36, 31, 32, 30, 29, 28, 27,
25, 26, 20, 24, 5, 9, 71, 113, 71, 47,
82, 83, 82, 48, 47, 84, 85, 84, 49, 52,
47, 71, 113, 113, 71, 113, 23, 51, 77, 79,
80, 94, 94, 94, 99, 99, 100, 100, 101, 101,
101, 101, 102, 102, 103, 104, 105, 106, 113, 107,
109, 109, 52, 48, 113, 47, 83, 85, 85, 80,
49, 49, 97, 52, 52, 48, 52, 113, 49, 55,
80, 52, 49, 94, 97, 80, 109, 49, 49
}
const yytype_int16 yytable[] [static] |
{
"$end", "error", "$undefined", "INTEGER_LITERAL",
"FLOATING_POINT_LITERAL", "IDENTIFIER", "STRING_LITERAL",
"BOOLEAN_LITERAL", "TYPENAME", "NAME_OR_INT", "ERROR", "LONG", "SHORT",
"BYTE", "INT", "CHAR", "BOOLEAN", "DOUBLE", "FLOAT", "VARIABLE",
"ASSIGN_MODIFY", "SUPER", "NEW", "','", "'='", "'?'", "OROR", "ANDAND",
"'|'", "'^'", "'&'", "NOTEQUAL", "EQUAL", "'<'", "'>'", "GEQ", "LEQ",
"RSH", "LSH", "'+'", "'-'", "'*'", "'/'", "'%'", "DECREMENT",
"INCREMENT", "'.'", "'['", "'('", "')'", "'{'", "'}'", "']'", "'~'",
"'!'", "':'", "$accept", "start", "type_exp", "PrimitiveOrArrayType",
"StringLiteral", "Literal", "PrimitiveType", "NumericType",
"IntegralType", "FloatingPointType", "ClassOrInterfaceType", "ClassType",
"ArrayType", "Name", "ForcedName", "SimpleName", "QualifiedName", "exp1",
"Primary", "PrimaryNoNewArray", "lcurly", "rcurly",
"ClassInstanceCreationExpression", "ArgumentList", "ArgumentList_opt",
"ArrayCreationExpression", "DimExprs", "DimExpr", "Dims", "Dims_opt",
"FieldAccess", "FuncStart", "MethodInvocation", "$@1", "ArrayAccess",
"PostfixExpression", "PostIncrementExpression",
"PostDecrementExpression", "UnaryExpression", "PreIncrementExpression",
"PreDecrementExpression", "UnaryExpressionNotPlusMinus",
"CastExpression", "MultiplicativeExpression", "AdditiveExpression",
"ShiftExpression", "RelationalExpression", "EqualityExpression",
"AndExpression", "ExclusiveOrExpression", "InclusiveOrExpression",
"ConditionalAndExpression", "ConditionalOrExpression",
"ConditionalExpression", "AssignmentExpression", "Assignment",
"LeftHandSide", "Expression", 0
}
const yytype_uint8 yytranslate[] [static] |
1.7.6.1