GDB (xrefs)
Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/c-exp.c File Reference
#include "defs.h"
#include <ctype.h>
#include "expression.h"
#include "value.h"
#include "parser-defs.h"
#include "language.h"
#include "c-lang.h"
#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
#include "charset.h"
#include "block.h"
#include "cp-support.h"
#include "dfp.h"
#include "macroscope.h"
#include "objc-lang.h"
#include "typeprint.h"
#include "cp-abi.h"
#include <stddef.h>

Go to the source code of this file.

Classes

union  YYSTYPE
 
union  yyalloc
 
struct  token
 
struct  token_and_value
 

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "3.0.2"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define parse_type(ps)   builtin_type (parse_gdbarch (ps))
 
#define yymaxdepth   c_maxdepth
 
#define yyparse   c_parse_internal
 
#define yylex   c_lex
 
#define yyerror   c_error
 
#define yylval   c_lval
 
#define yychar   c_char
 
#define yydebug   c_debug
 
#define yypact   c_pact
 
#define yyr1   c_r1
 
#define yyr2   c_r2
 
#define yydef   c_def
 
#define yychk   c_chk
 
#define yypgo   c_pgo
 
#define yyact   c_act
 
#define yyexca   c_exca
 
#define yyerrflag   c_errflag
 
#define yynerrs   c_nerrs
 
#define yyps   c_ps
 
#define yypv   c_pv
 
#define yys   c_s
 
#define yy_yys   c_yys
 
#define yystate   c_state
 
#define yytmp   c_tmp
 
#define yyv   c_v
 
#define yy_yyv   c_yyv
 
#define yyval   c_val
 
#define yylloc   c_lloc
 
#define yyreds   c_reds /* With YYDEBUG defined */
 
#define yytoks   c_toks /* With YYDEBUG defined */
 
#define yyname   c_name /* With YYDEBUG defined */
 
#define yyrule   c_rule /* With YYDEBUG defined */
 
#define yylhs   c_yylhs
 
#define yylen   c_yylen
 
#define yydefred   c_yydefred
 
#define yydgoto   c_yydgoto
 
#define yysindex   c_yysindex
 
#define yyrindex   c_yyrindex
 
#define yygindex   c_yygindex
 
#define yytable   c_yytable
 
#define yycheck   c_yycheck
 
#define yyss   c_yyss
 
#define yysslim   c_yysslim
 
#define yyssp   c_yyssp
 
#define yystacksize   c_yystacksize
 
#define yyvs   c_yyvs
 
#define yyvsp   c_yyvsp
 
#define YYDEBUG   1 /* Default to yydebug support */
 
#define YYFPRINTF   parser_fprintf
 
#define YY_NULLPTR   0
 
#define YYERROR_VERBOSE   0
 
#define YYTOKENTYPE
 
#define INT   258
 
#define FLOAT   259
 
#define DECFLOAT   260
 
#define STRING   261
 
#define NSSTRING   262
 
#define SELECTOR   263
 
#define CHAR   264
 
#define NAME   265
 
#define UNKNOWN_CPP_NAME   266
 
#define COMPLETE   267
 
#define TYPENAME   268
 
#define CLASSNAME   269
 
#define OBJC_LBRAC   270
 
#define NAME_OR_INT   271
 
#define OPERATOR   272
 
#define STRUCT   273
 
#define CLASS   274
 
#define UNION   275
 
#define ENUM   276
 
#define SIZEOF   277
 
#define UNSIGNED   278
 
#define COLONCOLON   279
 
#define TEMPLATE   280
 
#define ERROR   281
 
#define NEW   282
 
#define DELETE   283
 
#define REINTERPRET_CAST   284
 
#define DYNAMIC_CAST   285
 
#define STATIC_CAST   286
 
#define CONST_CAST   287
 
#define ENTRY   288
 
#define TYPEOF   289
 
#define DECLTYPE   290
 
#define TYPEID   291
 
#define SIGNED_KEYWORD   292
 
#define LONG   293
 
#define SHORT   294
 
#define INT_KEYWORD   295
 
#define CONST_KEYWORD   296
 
#define VOLATILE_KEYWORD   297
 
#define DOUBLE_KEYWORD   298
 
#define VARIABLE   299
 
#define ASSIGN_MODIFY   300
 
#define TRUEKEYWORD   301
 
#define FALSEKEYWORD   302
 
#define ABOVE_COMMA   303
 
#define OROR   304
 
#define ANDAND   305
 
#define EQUAL   306
 
#define NOTEQUAL   307
 
#define LEQ   308
 
#define GEQ   309
 
#define LSH   310
 
#define RSH   311
 
#define UNARY   312
 
#define INCREMENT   313
 
#define DECREMENT   314
 
#define ARROW   315
 
#define ARROW_STAR   316
 
#define DOT_STAR   317
 
#define BLOCKNAME   318
 
#define FILENAME   319
 
#define DOTDOTDOT   320
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define YYSTYPE_IS_DECLARED   1
 
#define YYPRINT(FILE, TYPE, VALUE)   c_print_token (FILE, TYPE, VALUE)
 
#define YYSIZE_T   size_t
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE(Spec)   /* empty */
 
#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
 
#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))
 
#define YYUSE(E)   ((void) (E))
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#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(Dst, Src, Count)
 
#define YYFINAL   167
 
#define YYLAST   1690
 
#define YYNTOKENS   90
 
#define YYNNTS   46
 
#define YYNRULES   260
 
#define YYNSTATES   413
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   320
 
#define YYTRANSLATE(YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -217
 
#define yypact_value_is_default(Yystate)   (!!((Yystate) == (-217)))
 
#define YYTABLE_NINF   -121
 
#define yytable_value_is_error(Yytable_value)   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 YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#define YYDPRINTF(Args)
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#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 signed char 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, _AND_ = 271, OR = 272, XOR = 273,
  THEN = 274, ELSE = 275, NOTEQUAL = 276, LEQ = 277,
  GEQ = 278, IN = 279, DOTDOT = 280, UNARY = 281,
  MOD = 282, REM = 283, STARSTAR = 284, ABS = 285,
  NOT = 286, VAR = 287, ARROW = 288, TICK_ACCESS = 289,
  TICK_ADDRESS = 290, TICK_FIRST = 291, TICK_LAST = 292, TICK_LENGTH = 293,
  TICK_MAX = 294, TICK_MIN = 295, TICK_MODULUS = 296, TICK_POS = 297,
  TICK_RANGE = 298, TICK_SIZE = 299, TICK_TAG = 300, TICK_VAL = 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, EQUAL = 306, NOTEQUAL = 307,
  LEQ = 308, GEQ = 309, LSH = 310, RSH = 311,
  UNARY = 312, INCREMENT = 313, DECREMENT = 314, ARROW = 315,
  ARROW_STAR = 316, DOT_STAR = 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, EQUAL = 298, NOTEQUAL = 299, LEQ = 300,
  GEQ = 301, LSH = 302, RSH = 303, UNARY = 304,
  INCREMENT = 305, DECREMENT = 306, ARROW = 307, IDENTIFIER = 258,
  TYPENAME = 259, COMPLETE = 260, NAME_OR_INT = 261, INTEGER_LITERAL = 262,
  FLOAT_LITERAL = 263, CHARACTER_LITERAL = 264, STRING_LITERAL = 265, ENTRY = 266,
  ERROR = 267, TRUE_KEYWORD = 268, FALSE_KEYWORD = 269, NULL_KEYWORD = 270,
  SUPER_KEYWORD = 271, CAST_KEYWORD = 272, SIZEOF_KEYWORD = 273, TYPEOF_KEYWORD = 274,
  TYPEID_KEYWORD = 275, INIT_KEYWORD = 276, IMMUTABLE_KEYWORD = 277, CONST_KEYWORD = 278,
  SHARED_KEYWORD = 279, STRUCT_KEYWORD = 280, UNION_KEYWORD = 281, CLASS_KEYWORD = 282,
  INTERFACE_KEYWORD = 283, ENUM_KEYWORD = 284, TEMPLATE_KEYWORD = 285, DELEGATE_KEYWORD = 286,
  FUNCTION_KEYWORD = 287, DOLLAR_VARIABLE = 288, ASSIGN_MODIFY = 289, OROR = 290,
  ANDAND = 291, EQUAL = 292, NOTEQUAL = 293, LEQ = 294,
  GEQ = 295, LSH = 296, RSH = 297, HATHAT = 298,
  IDENTITY = 299, NOTIDENTITY = 300, INCREMENT = 301, DECREMENT = 302,
  DOTDOT = 303, 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, EQUAL = 286, NOTEQUAL = 287, LESSTHAN = 288,
  GREATERTHAN = 289, LEQ = 290, GEQ = 291, LSH = 292,
  RSH = 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, EQUAL = 290,
  NOTEQUAL = 291, LEQ = 292, GEQ = 293, LSH = 294,
  RSH = 295, UNARY = 296, INCREMENT = 297, DECREMENT = 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, EQUAL = 280,
  NOTEQUAL = 281, LEQ = 282, GEQ = 283, LSH = 284,
  RSH = 285, INCREMENT = 286, DECREMENT = 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, LEQ = 293, GEQ = 294,
  NOTEQUAL = 295, IN = 296, OROR = 297, LOGICAL_AND = 298,
  DIV = 299, MOD = 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, LEQ = 282, GEQ = 283,
  LSH = 284, RSH = 285, DIV = 286, MOD = 287,
  UNARY = 288, INCREMENT = 289, DECREMENT = 290, ARROW = 291,
  BLOCKNAME = 292
}
 
enum  token_flags { FLAG_CXX = 1, FLAG_SHADOW = 2 }
 

Functions

int yyparse (void)
 
static int yylex (void)
 
void yyerror (char *)
 
static int type_aggregate_p (struct type *)
 
static int parse_number (struct parser_state *par_state, const char *, int, int, YYSTYPE *)
 
static struct stoken operator_stoken (const char *)
 
static void check_parameter_typelist (VEC(type_ptr)*)
 
static void write_destructor_name (struct parser_state *par_state, struct stoken)
 
static void c_print_token (FILE *file, int type, YYSTYPE value)
 
void * xmalloc (YYSIZE_T)
 
void xfree (void *)
 
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 (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
 
static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
 
int c_parse_escape (const char **ptr, struct obstack *output)
 
static int parse_string_or_char (const char *tokptr, const char **outptr, struct typed_stoken *value, int *host_chars)
 
static void scan_macro_expansion (char *expansion)
 
static int scanning_macro_expansion (void)
 
static void finished_macro_expansion (void)
 
static void scan_macro_cleanup (void *dummy)
 
static int is_cast_operator (const char *token, int len)
 
static int lex_one_token (struct parser_state *par_state, int *is_quoted_name)
 
 DEF_VEC_O (token_and_value)
 
static VEC (token_and_value)
 
static int classify_inner_name (struct parser_state *par_state, const struct block *block, struct type *context)
 
int c_parse (struct parser_state *par_state)
 

Variables

static struct parser_statepstate = NULL
 
int yydebug
 
YYSTYPE yylval
 
static const yytype_uint8 yytranslate []
 
static const yytype_uint16 yyrline []
 
static const char *const yytname []
 
static const yytype_uint16 yytoknum []
 
static const yytype_int16 yypact []
 
static const yytype_uint16 yydefact []
 
static const yytype_int16 yypgoto []
 
static const yytype_int16 yydefgoto []
 
static const yytype_int16 yytable []
 
static const yytype_int16 yycheck []
 
static const yytype_uint8 yystos []
 
static const yytype_uint8 yyr1 []
 
static const yytype_uint8 yyr2 []
 
int yychar
 
int yynerrs
 
static struct obstack tempbuf
 
static int tempbuf_init
 
static const struct token tokentab3 []
 
static const struct token tokentab2 []
 
static const struct token ident_tokens []
 
static const char * macro_original_text
 
static struct obstack expansion_obstack
 
static struct macro_scopeexpression_macro_scope
 
static int saw_name_at_eof
 
static int last_was_structop
 

Macro Definition Documentation

#define ABOVE_COMMA   303

Definition at line 306 of file c-exp.c.

#define ANDAND   305

Definition at line 308 of file c-exp.c.

#define ARROW   315

Definition at line 318 of file c-exp.c.

Referenced by lex_one_token().

#define ARROW_STAR   316

Definition at line 319 of file c-exp.c.

#define ASSIGN_MODIFY   300

Definition at line 303 of file c-exp.c.

#define BLOCKNAME   318

Definition at line 321 of file c-exp.c.

Referenced by c_print_token().

#define CHAR   264

Definition at line 267 of file c-exp.c.

Referenced by c_print_token(), lex_one_token(), and parse_string_or_char().

#define CLASS   274

Definition at line 277 of file c-exp.c.

#define CLASSNAME   269

Definition at line 272 of file c-exp.c.

#define COLONCOLON   279

Definition at line 282 of file c-exp.c.

Referenced by yylex().

#define COMPLETE   267

Definition at line 270 of file c-exp.c.

Referenced by lex_one_token().

#define CONST_CAST   287

Definition at line 290 of file c-exp.c.

#define CONST_KEYWORD   296

Definition at line 299 of file c-exp.c.

#define DECFLOAT   260

Definition at line 263 of file c-exp.c.

Referenced by parse_number().

#define DECLTYPE   290

Definition at line 293 of file c-exp.c.

#define DECREMENT   314

Definition at line 317 of file c-exp.c.

#define DELETE   283

Definition at line 286 of file c-exp.c.

#define DOT_STAR   317

Definition at line 320 of file c-exp.c.

#define DOTDOTDOT   320

Definition at line 323 of file c-exp.c.

#define DOUBLE_KEYWORD   298

Definition at line 301 of file c-exp.c.

#define DYNAMIC_CAST   285

Definition at line 288 of file c-exp.c.

#define ENTRY   288

Definition at line 291 of file c-exp.c.

Referenced by lex_one_token().

#define ENUM   276

Definition at line 279 of file c-exp.c.

#define EQUAL   306

Definition at line 309 of file c-exp.c.

#define ERROR   281

Definition at line 284 of file c-exp.c.

Referenced by classify_inner_name(), lex_one_token(), and parse_number().

#define FALSEKEYWORD   302

Definition at line 305 of file c-exp.c.

#define FILENAME   319

Definition at line 322 of file c-exp.c.

Referenced by c_print_token(), and yylex().

#define FLOAT   259

Definition at line 262 of file c-exp.c.

Referenced by parse_number().

#define GEQ   309

Definition at line 312 of file c-exp.c.

#define INCREMENT   313

Definition at line 316 of file c-exp.c.

#define INT   258

Definition at line 261 of file c-exp.c.

Referenced by c_print_token(), and parse_number().

#define INT_KEYWORD   295

Definition at line 298 of file c-exp.c.

#define LEQ   308

Definition at line 311 of file c-exp.c.

#define LONG   293

Definition at line 296 of file c-exp.c.

#define LSH   310

Definition at line 313 of file c-exp.c.

#define NAME   265

Definition at line 268 of file c-exp.c.

Referenced by c_print_token(), classify_inner_name(), lex_one_token(), and yylex().

#define NAME_OR_INT   271

Definition at line 274 of file c-exp.c.

Referenced by c_print_token().

#define NEW   282

Definition at line 285 of file c-exp.c.

#define NOTEQUAL   307

Definition at line 310 of file c-exp.c.

#define NSSTRING   262

Definition at line 265 of file c-exp.c.

Referenced by c_print_token(), and parse_string_or_char().

#define OBJC_LBRAC   270

Definition at line 273 of file c-exp.c.

Referenced by lex_one_token().

#define OPERATOR   272

Definition at line 275 of file c-exp.c.

#define OROR   304

Definition at line 307 of file c-exp.c.

#define parse_type (   ps)    builtin_type (parse_gdbarch (ps))

Definition at line 87 of file c-exp.c.

Referenced by parse_number(), and yyparse().

#define REINTERPRET_CAST   284

Definition at line 287 of file c-exp.c.

#define RSH   311

Definition at line 314 of file c-exp.c.

#define SELECTOR   263

Definition at line 266 of file c-exp.c.

Referenced by lex_one_token().

#define SHORT   294

Definition at line 297 of file c-exp.c.

#define SIGNED_KEYWORD   292

Definition at line 295 of file c-exp.c.

#define SIZEOF   277

Definition at line 280 of file c-exp.c.

#define STATIC_CAST   286

Definition at line 289 of file c-exp.c.

#define STRING   261

Definition at line 264 of file c-exp.c.

Referenced by c_print_token(), and parse_string_or_char().

#define STRUCT   273

Definition at line 276 of file c-exp.c.

#define TEMPLATE   280

Definition at line 283 of file c-exp.c.

#define TRUEKEYWORD   301

Definition at line 304 of file c-exp.c.

#define TYPEID   291

Definition at line 294 of file c-exp.c.

#define TYPENAME   268

Definition at line 271 of file c-exp.c.

Referenced by c_print_token(), classify_inner_name(), and yylex().

#define TYPEOF   289

Definition at line 292 of file c-exp.c.

#define UNARY   312

Definition at line 315 of file c-exp.c.

#define UNION   275

Definition at line 278 of file c-exp.c.

#define UNKNOWN_CPP_NAME   266

Definition at line 269 of file c-exp.c.

Referenced by c_print_token().

#define UNSIGNED   278

Definition at line 281 of file c-exp.c.

#define VARIABLE   299

Definition at line 302 of file c-exp.c.

Referenced by c_print_token(), and lex_one_token().

#define VOLATILE_KEYWORD   297

Definition at line 300 of file c-exp.c.

#define YY_ (   Msgid)    Msgid

Definition at line 444 of file c-exp.c.

Referenced by yyparse().

#define YY_ATTRIBUTE (   Spec)    /* empty */

Definition at line 454 of file c-exp.c.

#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))

Definition at line 459 of file c-exp.c.

#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))

Definition at line 463 of file c-exp.c.

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 494 of file c-exp.c.

Referenced by yydestruct(), and yyparse().

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 495 of file c-exp.c.

Referenced by yydestruct(), and yyparse().

#define YY_INITIAL_VALUE (   Value)    Value

Definition at line 491 of file c-exp.c.

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

Definition at line 1415 of file c-exp.c.

#define YY_NULLPTR   0

Definition at line 169 of file c-exp.c.

#define YY_REDUCE_PRINT (   Rule)
Value:
do { \
yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)
if(!(yy_init))
Definition: ada-lex.c:1072
#define yydebug
Definition: c-exp.c:102
#define yyvsp
Definition: c-exp.c:141
#define yyssp
Definition: c-exp.c:138

Definition at line 1512 of file c-exp.c.

Referenced by yyparse().

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do { \
yy_stack_print ((Bottom), (Top)); \
} while (0)
if(!(yy_init))
Definition: ada-lex.c:1072
#define yydebug
Definition: c-exp.c:102

Definition at line 1481 of file c-exp.c.

Referenced by yyparse().

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)
Value:
do { \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Type, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)
if(!(yy_init))
Definition: ada-lex.c:1072
#define yydebug
Definition: c-exp.c:102

Definition at line 1419 of file c-exp.c.

Referenced by yydestruct(), and yyparse().

#define yy_yys   c_yys

Definition at line 116 of file c-exp.c.

#define yy_yyv   c_yyv

Definition at line 120 of file c-exp.c.

#define YYABORT   goto yyabortlab

Definition at line 1370 of file c-exp.c.

Referenced by yyparse().

#define YYACCEPT   goto yyacceptlab

Definition at line 1369 of file c-exp.c.

Referenced by yyparse().

#define yyact   c_act

Definition at line 109 of file c-exp.c.

#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
#define yychar
Definition: c-exp.c:101
if(!(yy_init))
Definition: ada-lex.c:1072
#define YYEMPTY
Definition: c-exp.c:1366
#define yylen
Definition: c-exp.c:128
#define YY_(Msgid)
Definition: c-exp.c:444
#define yyssp
Definition: c-exp.c:138

Definition at line 1376 of file c-exp.c.

#define YYBISON   1

Definition at line 44 of file c-exp.c.

#define YYBISON_VERSION   "3.0.2"

Definition at line 47 of file c-exp.c.

#define yychar   c_char

Definition at line 101 of file c-exp.c.

#define yycheck   c_yycheck

Definition at line 135 of file c-exp.c.

#define yychk   c_chk

Definition at line 107 of file c-exp.c.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 1365 of file c-exp.c.

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)

Definition at line 617 of file c-exp.c.

#define YYCOPY_NEEDED   1

Definition at line 589 of file c-exp.c.

#define yydebug   c_debug

Definition at line 102 of file c-exp.c.

#define YYDEBUG   1 /* Default to yydebug support */

Definition at line 144 of file c-exp.c.

#define yydef   c_def

Definition at line 106 of file c-exp.c.

#define yydefred   c_yydefred

Definition at line 129 of file c-exp.c.

#define yydgoto   c_yydgoto

Definition at line 130 of file c-exp.c.

#define YYDPRINTF (   Args)
Value:
do { \
YYFPRINTF Args; \
} while (0)
if(!(yy_init))
Definition: ada-lex.c:1072
#define yydebug
Definition: c-exp.c:102

Definition at line 1407 of file c-exp.c.

Referenced by yyparse().

#define YYEMPTY   (-2)

Definition at line 1366 of file c-exp.c.

Referenced by yyparse().

#define YYEOF   0

Definition at line 1367 of file c-exp.c.

Referenced by yyparse().

#define YYERRCODE   256

Definition at line 1395 of file c-exp.c.

#define yyerrflag   c_errflag

Definition at line 111 of file c-exp.c.

#define yyerrok   (yyerrstatus = 0)

Definition at line 1364 of file c-exp.c.

#define yyerror   c_error

Definition at line 99 of file c-exp.c.

Referenced by yyparse().

#define YYERROR   goto yyerrorlab

Definition at line 1371 of file c-exp.c.

#define YYERROR_VERBOSE   0

Definition at line 178 of file c-exp.c.

#define yyexca   c_exca

Definition at line 110 of file c-exp.c.

#define YYFINAL   167

Definition at line 630 of file c-exp.c.

Referenced by yyparse().

#define YYFPRINTF   parser_fprintf

Definition at line 147 of file c-exp.c.

Referenced by yy_reduce_print(), yy_stack_print(), and yy_symbol_print().

#define YYFREE   xfree

Definition at line 560 of file c-exp.c.

#define yygindex   c_yygindex

Definition at line 133 of file c-exp.c.

#define YYINITDEPTH   200

Definition at line 1531 of file c-exp.c.

Referenced by yyparse().

#define YYLAST   1690

Definition at line 632 of file c-exp.c.

Referenced by yyparse().

#define yylen   c_yylen

Definition at line 128 of file c-exp.c.

Referenced by yyparse().

#define yylex   c_lex

Definition at line 98 of file c-exp.c.

Referenced by yyparse().

#define yylhs   c_yylhs

Definition at line 127 of file c-exp.c.

#define yylloc   c_lloc

Definition at line 122 of file c-exp.c.

Referenced by yyparse().

#define yylval   c_lval

Definition at line 100 of file c-exp.c.

Referenced by yylex(), and yyparse().

#define YYMALLOC   xmalloc

Definition at line 554 of file c-exp.c.

#define yymaxdepth   c_maxdepth

Definition at line 96 of file c-exp.c.

#define YYMAXDEPTH   10000

Definition at line 1542 of file c-exp.c.

Referenced by yyparse().

#define YYMAXUTOK   320

Definition at line 646 of file c-exp.c.

#define yyname   c_name /* With YYDEBUG defined */

Definition at line 125 of file c-exp.c.

#define yynerrs   c_nerrs

Definition at line 112 of file c-exp.c.

Referenced by yyparse().

#define YYNNTS   46

Definition at line 637 of file c-exp.c.

#define YYNRULES   260

Definition at line 639 of file c-exp.c.

#define YYNSTATES   413

Definition at line 641 of file c-exp.c.

#define YYNTOKENS   90

Definition at line 635 of file c-exp.c.

Referenced by yy_symbol_print(), yy_symbol_value_print(), and yyparse().

#define yypact   c_pact

Definition at line 103 of file c-exp.c.

#define YYPACT_NINF   -217

Definition at line 773 of file c-exp.c.

#define yypact_value_is_default (   Yystate)    (!!((Yystate) == (-217)))

Definition at line 775 of file c-exp.c.

Referenced by yyparse().

#define yyparse   c_parse_internal

Definition at line 97 of file c-exp.c.

Referenced by c_parse().

#define yypgo   c_pgo

Definition at line 108 of file c-exp.c.

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

Referenced by yyparse().

#define YYPRINT (   FILE,
  TYPE,
  VALUE 
)    c_print_token (FILE, TYPE, VALUE)

Definition at line 388 of file c-exp.c.

Referenced by yy_symbol_value_print().

#define yyps   c_ps

Definition at line 113 of file c-exp.c.

#define YYPULL   1

Definition at line 59 of file c-exp.c.

#define YYPURE   0

Definition at line 53 of file c-exp.c.

#define YYPUSH   0

Definition at line 56 of file c-exp.c.

#define yypv   c_pv

Definition at line 114 of file c-exp.c.

#define yyr1   c_r1

Definition at line 104 of file c-exp.c.

#define yyr2   c_r2

Definition at line 105 of file c-exp.c.

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 1374 of file c-exp.c.

#define yyreds   c_reds /* With YYDEBUG defined */

Definition at line 123 of file c-exp.c.

#define yyrindex   c_yyrindex

Definition at line 132 of file c-exp.c.

#define yyrule   c_rule /* With YYDEBUG defined */

Definition at line 126 of file c-exp.c.

Referenced by yy_reduce_print().

#define yys   c_s

Definition at line 115 of file c-exp.c.

#define yysindex   c_yysindex

Definition at line 131 of file c-exp.c.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 434 of file c-exp.c.

#define YYSIZE_T   size_t

Definition at line 428 of file c-exp.c.

Referenced by yyparse().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 50 of file c-exp.c.

#define yyss   c_yyss

Definition at line 136 of file c-exp.c.

Referenced by yyparse().

#define yysslim   c_yysslim

Definition at line 137 of file c-exp.c.

#define yyssp   c_yyssp

Definition at line 138 of file c-exp.c.

Referenced by yyparse().

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 540 of file c-exp.c.

Referenced by yyparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 543 of file c-exp.c.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
#define YYSTACK_GAP_MAXIMUM
Definition: c-exp.c:581
union YYSTYPE YYSTYPE
Definition: c-exp.c:327
short int yytype_int16
Definition: ada-exp.c:395

Definition at line 585 of file c-exp.c.

Referenced by yyparse().

#define YYSTACK_FREE   YYFREE

Definition at line 541 of file c-exp.c.

Referenced by yyparse().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 581 of file c-exp.c.

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
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 (0)
#define yystacksize
Definition: c-exp.c:139
#define YYSTACK_GAP_MAXIMUM
Definition: c-exp.c:581

Definition at line 596 of file c-exp.c.

Referenced by yyparse().

#define yystacksize   c_yystacksize

Definition at line 139 of file c-exp.c.

Referenced by yyparse().

#define yystate   c_state

Definition at line 117 of file c-exp.c.

Referenced by yyparse().

#define YYSTYPE_IS_DECLARED   1

Definition at line 365 of file c-exp.c.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 364 of file c-exp.c.

#define yytable   c_yytable

Definition at line 134 of file c-exp.c.

#define YYTABLE_NINF   -121

Definition at line 778 of file c-exp.c.

#define yytable_value_is_error (   Yytable_value)    0

Definition at line 780 of file c-exp.c.

Referenced by yyparse().

#define YYTERROR   1

Definition at line 1394 of file c-exp.c.

Referenced by yyparse().

#define yytmp   c_tmp

Definition at line 118 of file c-exp.c.

#define YYTOKENTYPE

Definition at line 192 of file c-exp.c.

#define yytoks   c_toks /* With YYDEBUG defined */

Definition at line 124 of file c-exp.c.

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 648 of file c-exp.c.

Referenced by yyparse().

#define YYUNDEFTOK   2

Definition at line 645 of file c-exp.c.

#define YYUSE (   E)    ((void) (E))

Definition at line 477 of file c-exp.c.

Referenced by yy_symbol_value_print(), and yydestruct().

#define yyv   c_v

Definition at line 119 of file c-exp.c.

#define yyval   c_val

Definition at line 121 of file c-exp.c.

Referenced by yyparse().

#define yyvs   c_yyvs

Definition at line 140 of file c-exp.c.

Referenced by yyparse().

#define yyvsp   c_yyvsp

Definition at line 141 of file c-exp.c.

Referenced by yyparse().

Typedef Documentation

typedef union YYSTYPE YYSTYPE

Definition at line 327 of file c-exp.c.

typedef short int yytype_int16

Definition at line 418 of file c-exp.c.

typedef signed char yytype_int8

Definition at line 406 of file c-exp.c.

typedef unsigned short int yytype_uint16

Definition at line 412 of file c-exp.c.

typedef unsigned char yytype_uint8

Definition at line 400 of file c-exp.c.

Enumeration Type Documentation

Enumerator
FLAG_CXX 
FLAG_SHADOW 

Definition at line 4846 of file c-exp.c.

Enumerator
INT 
NULL_PTR 
CHARLIT 
FLOAT 
TRUEKEYWORD 
FALSEKEYWORD 
COLONCOLON 
STRING 
NAME 
DOT_ID 
DOT_ALL 
SPECIAL_VARIABLE 
ASSIGN 
_AND_ 
OR 
XOR 
THEN 
ELSE 
NOTEQUAL 
LEQ 
GEQ 
IN 
DOTDOT 
UNARY 
MOD 
REM 
STARSTAR 
ABS 
NOT 
VAR 
ARROW 
TICK_ACCESS 
TICK_ADDRESS 
TICK_FIRST 
TICK_LAST 
TICK_LENGTH 
TICK_MAX 
TICK_MIN 
TICK_MODULUS 
TICK_POS 
TICK_RANGE 
TICK_SIZE 
TICK_TAG 
TICK_VAL 
NEW 
OTHERS 
INT 
FLOAT 
DECFLOAT 
STRING 
NSSTRING 
SELECTOR 
CHAR 
NAME 
UNKNOWN_CPP_NAME 
COMPLETE 
TYPENAME 
CLASSNAME 
OBJC_LBRAC 
NAME_OR_INT 
OPERATOR 
STRUCT 
CLASS 
UNION 
ENUM 
SIZEOF 
UNSIGNED 
COLONCOLON 
TEMPLATE 
ERROR 
NEW 
DELETE 
REINTERPRET_CAST 
DYNAMIC_CAST 
STATIC_CAST 
CONST_CAST 
ENTRY 
TYPEOF 
DECLTYPE 
TYPEID 
SIGNED_KEYWORD 
LONG 
SHORT 
INT_KEYWORD 
CONST_KEYWORD 
VOLATILE_KEYWORD 
DOUBLE_KEYWORD 
VARIABLE 
ASSIGN_MODIFY 
TRUEKEYWORD 
FALSEKEYWORD 
ABOVE_COMMA 
OROR 
ANDAND 
EQUAL 
NOTEQUAL 
LEQ 
GEQ 
LSH 
RSH 
UNARY 
INCREMENT 
DECREMENT 
ARROW 
ARROW_STAR 
DOT_STAR 
BLOCKNAME 
FILENAME 
DOTDOTDOT 
INT 
FLOAT 
NAME 
STRUCT 
CLASS 
UNION 
ENUM 
SIZEOF 
UNSIGNED 
COLONCOLON 
TEMPLATE 
ERROR 
NEW 
DELETE 
OPERATOR 
STATIC_CAST 
REINTERPRET_CAST 
DYNAMIC_CAST 
SIGNED_KEYWORD 
LONG 
SHORT 
INT_KEYWORD 
CONST_KEYWORD 
VOLATILE_KEYWORD 
DOUBLE_KEYWORD 
BOOL 
ELLIPSIS 
RESTRICT 
VOID 
FLOAT_KEYWORD 
CHAR 
WCHAR_T 
ASSIGN_MODIFY 
TRUEKEYWORD 
FALSEKEYWORD 
DEMANGLER_SPECIAL 
CONSTRUCTION_VTABLE 
CONSTRUCTION_IN 
OROR 
ANDAND 
EQUAL 
NOTEQUAL 
LEQ 
GEQ 
LSH 
RSH 
UNARY 
INCREMENT 
DECREMENT 
ARROW 
IDENTIFIER 
TYPENAME 
COMPLETE 
NAME_OR_INT 
INTEGER_LITERAL 
FLOAT_LITERAL 
CHARACTER_LITERAL 
STRING_LITERAL 
ENTRY 
ERROR 
TRUE_KEYWORD 
FALSE_KEYWORD 
NULL_KEYWORD 
SUPER_KEYWORD 
CAST_KEYWORD 
SIZEOF_KEYWORD 
TYPEOF_KEYWORD 
TYPEID_KEYWORD 
INIT_KEYWORD 
IMMUTABLE_KEYWORD 
CONST_KEYWORD 
SHARED_KEYWORD 
STRUCT_KEYWORD 
UNION_KEYWORD 
CLASS_KEYWORD 
INTERFACE_KEYWORD 
ENUM_KEYWORD 
TEMPLATE_KEYWORD 
DELEGATE_KEYWORD 
FUNCTION_KEYWORD 
DOLLAR_VARIABLE 
ASSIGN_MODIFY 
OROR 
ANDAND 
EQUAL 
NOTEQUAL 
LEQ 
GEQ 
LSH 
RSH 
HATHAT 
IDENTITY 
NOTIDENTITY 
INCREMENT 
DECREMENT 
DOTDOT 
INT 
FLOAT 
STRING_LITERAL 
BOOLEAN_LITERAL 
NAME 
TYPENAME 
NAME_OR_INT 
SIZEOF 
ERROR 
INT_KEYWORD 
INT_S2_KEYWORD 
LOGICAL_S1_KEYWORD 
LOGICAL_S2_KEYWORD 
LOGICAL_S8_KEYWORD 
LOGICAL_KEYWORD 
REAL_KEYWORD 
REAL_S8_KEYWORD 
REAL_S16_KEYWORD 
COMPLEX_S8_KEYWORD 
COMPLEX_S16_KEYWORD 
COMPLEX_S32_KEYWORD 
BOOL_AND 
BOOL_OR 
BOOL_NOT 
CHARACTER 
VARIABLE 
ASSIGN_MODIFY 
ABOVE_COMMA 
EQUAL 
NOTEQUAL 
LESSTHAN 
GREATERTHAN 
LEQ 
GEQ 
LSH 
RSH 
STARSTAR 
UNARY 
INT 
FLOAT 
RAW_STRING 
STRING 
CHAR 
NAME 
TYPENAME 
COMPLETE 
NAME_OR_INT 
TRUE_KEYWORD 
FALSE_KEYWORD 
STRUCT_KEYWORD 
INTERFACE_KEYWORD 
TYPE_KEYWORD 
CHAN_KEYWORD 
SIZEOF_KEYWORD 
LEN_KEYWORD 
CAP_KEYWORD 
NEW_KEYWORD 
IOTA_KEYWORD 
NIL_KEYWORD 
CONST_KEYWORD 
DOTDOTDOT 
ENTRY 
ERROR 
BYTE_KEYWORD 
DOLLAR_VARIABLE 
ASSIGN_MODIFY 
ABOVE_COMMA 
OROR 
ANDAND 
ANDNOT 
EQUAL 
NOTEQUAL 
LEQ 
GEQ 
LSH 
RSH 
UNARY 
INCREMENT 
DECREMENT 
LEFT_ARROW 
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 
EQUAL 
NOTEQUAL 
LEQ 
GEQ 
LSH 
RSH 
INCREMENT 
DECREMENT 
INT 
HEX 
ERROR 
UINT 
M2_TRUE 
M2_FALSE 
CHAR 
FLOAT 
STRING 
NAME 
BLOCKNAME 
IDENT 
VARNAME 
TYPENAME 
SIZE 
CAP 
ORD 
HIGH 
ABS 
MIN_FUNC 
MAX_FUNC 
FLOAT_FUNC 
VAL 
CHR 
ODD 
TRUNC 
TSIZE 
INC 
DEC 
INCL 
EXCL 
COLONCOLON 
INTERNAL_VAR 
ABOVE_COMMA 
ASSIGN 
LEQ 
GEQ 
NOTEQUAL 
IN 
OROR 
LOGICAL_AND 
DIV 
MOD 
UNARY 
DOT 
NOT 
QID 
INT 
FLOAT 
STRING 
FIELDNAME 
COMPLETE 
NAME 
TYPENAME 
NAME_OR_INT 
STRUCT 
CLASS 
SIZEOF 
COLONCOLON 
ERROR 
VARIABLE 
THIS 
TRUEKEYWORD 
FALSEKEYWORD 
ABOVE_COMMA 
ASSIGN 
NOT 
OR 
XOR 
ANDAND 
NOTEQUAL 
LEQ 
GEQ 
LSH 
RSH 
DIV 
MOD 
UNARY 
INCREMENT 
DECREMENT 
ARROW 
BLOCKNAME 

Definition at line 193 of file c-exp.c.

Function Documentation

int c_parse ( struct parser_state par_state)
int c_parse_escape ( const char **  ptr,
struct obstack *  output 
)

Definition at line 4587 of file c-exp.c.

References _, error(), HOST_ESCAPE_CHAR, len, and obstack_grow_str.

Referenced by get_character_constant(), get_string_literal(), and parse_string_or_char().

static void c_print_token ( FILE *  file,
int  type,
YYSTYPE  value 
)
static
static void check_parameter_typelist ( VEC(type_ptr)*  params)
static

Definition at line 4300 of file c-exp.c.

References _, check_typedef(), error(), type, TYPE_CODE, TYPE_CODE_VOID, VEC_free, VEC_iterate, and VEC_length.

Referenced by yyparse().

static int classify_inner_name ( struct parser_state par_state,
const struct block block,
struct type context 
)
static
DEF_VEC_O ( token_and_value  )
static void finished_macro_expansion ( void  )
static

Definition at line 5004 of file c-exp.c.

References gdb_assert, lexptr, and macro_original_text.

Referenced by lex_one_token(), and scan_macro_cleanup().

static int is_cast_operator ( const char *  token,
int  len 
)
static

Definition at line 5026 of file c-exp.c.

Referenced by lex_one_token().

static int lex_one_token ( struct parser_state par_state,
int is_quoted_name 
)
static
static struct stoken operator_stoken ( const char *  op)
static

Definition at line 4268 of file c-exp.c.

References stoken::length, make_cleanup(), stoken::ptr, xfree(), and xmalloc().

Referenced by yyparse().

static int parse_number ( struct parser_state par_state,
const char *  buf,
int  len,
int  parsed_float,
YYSTYPE putithere 
)
static
static int parse_string_or_char ( const char *  tokptr,
const char **  outptr,
struct typed_stoken value,
int host_chars 
)
static
static void scan_macro_cleanup ( void *  dummy)
static

Definition at line 5015 of file c-exp.c.

References expansion_obstack, and finished_macro_expansion().

Referenced by c_parse().

static void scan_macro_expansion ( char *  expansion)
static

Definition at line 4979 of file c-exp.c.

References expansion_obstack, gdb_assert, lexptr, and xfree().

Referenced by lex_one_token().

static int scanning_macro_expansion ( void  )
static

Definition at line 4998 of file c-exp.c.

Referenced by lex_one_token().

static int type_aggregate_p ( struct type type)
static
static VEC ( token_and_value  )
static

Definition at line 5441 of file c-exp.c.

Referenced by yyparse().

static void write_destructor_name ( struct parser_state par_state,
struct stoken  token 
)
static

Definition at line 4251 of file c-exp.c.

References stoken::length, stoken::ptr, and write_exp_string().

Referenced by yyparse().

void xfree ( void *  )

Definition at line 97 of file common-utils.c.

Referenced by operator_stoken(), scan_macro_expansion(), and yyparse().

void* xmalloc ( YYSIZE_T  )

Referenced by operator_stoken(), and yyparse().

static void yy_reduce_print ( yytype_int16 yyssp,
YYSTYPE yyvsp,
int  yyrule 
)
static

Definition at line 1493 of file c-exp.c.

References yy_symbol_print(), YYFPRINTF, and yyrule.

static void yy_stack_print ( yytype_int16 yybottom,
yytype_int16 yytop 
)
static

Definition at line 1470 of file c-exp.c.

References YYFPRINTF.

static void yy_symbol_print ( FILE *  yyoutput,
int  yytype,
YYSTYPE const *const  yyvaluep 
)
static

Definition at line 1455 of file c-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

Definition at line 1436 of file c-exp.c.

References YYNTOKENS, YYPRINT, and YYUSE.

Referenced by yy_symbol_print().

static void yydestruct ( const char *  yymsg,
int  yytype,
YYSTYPE yyvaluep 
)
static
void yyerror ( char *  msg)

Definition at line 5903 of file c-exp.c.

References _, error(), lexptr, and prev_lexptr.

static int yylex ( void  )
static
int yyparse ( void  )

Definition at line 1802 of file c-exp.c.

References _, add_msglist(), append_type_stack(), arglist_len, block_found, YYSTYPE::bval, c_print_type(), C_STRING, C_STRING_16, C_STRING_32, C_WIDE_STRING, check_parameter_typelist(), CHECK_TYPEDEF, check_typedef(), contained_in(), copy_name(), destructor_name_p(), end_arglist(), end_msglist(), error(), expression_context_block, follow_types(), get_type_stack(), have_full_symbols(), have_partial_symbols(), innermost_block, insert_type(), insert_type_address_space(), internal_error(), stoken_vector::len, len, stoken::length, typed_stoken::length, type::length, LOC_BLOCK, lookup_bound_minimal_symbol(), lookup_enum(), lookup_objc_class(), lookup_signed_typename(), lookup_struct(), lookup_symbol(), lookup_template_type(), lookup_typename(), lookup_union(), lookup_unsigned_typename(), YYSTYPE::lval, make_cleanup(), mark_completion_tag(), mark_struct_expression(), mem_fileopen(), bound_minimal_symbol::minsym, name, operator_stoken(), parse_gdbarch, parse_language, parse_number(), parse_type, stoken::ptr, typed_stoken::ptr, push_type(), push_type_int(), push_type_stack(), push_typelist(), YYSTYPE::ssym, start_arglist(), start_msglist(), YYSTYPE::sval, YYSTYPE::svec, SYMBOL_BLOCK_VALUE, SYMBOL_CLASS, SYMBOL_IS_ARGUMENT, symbol_read_needs_frame(), stoken_vector::tokens, tp_array, tp_const, tp_pointer, tp_reference, tp_volatile, YYSTYPE::tsym, YYSTYPE::tval, YYSTYPE::tvec, typed_stoken::type, YYSTYPE::type, field_of_this_result::type, type_aggregate_p(), TYPE_CODE, TYPE_CODE_ENUM, TYPE_CODE_REF, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_LENGTH, TYPE_NAME, type_print_raw_options, TYPE_SAFE_NAME, type_stack_cleanup(), TYPE_TARGET_TYPE, YYSTYPE::typed_val_int, ui_file_delete(), ui_file_xstrdup(), YYSTYPE::val, VAR_DOMAIN, VEC(), VEC_free, VEC_iterate, VEC_length, VEC_safe_push, write_destructor_name(), write_dollar_variable(), write_exp_elt_block(), write_exp_elt_dblcst(), write_exp_elt_decfloatcst(), write_exp_elt_longcst(), write_exp_elt_opcode(), write_exp_elt_sym(), write_exp_elt_type(), write_exp_msymbol(), write_exp_string(), write_exp_string_vector(), xfree(), xmalloc(), xrealloc(), YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, YYFINAL, YYINITDEPTH, YYLAST, yylen, yylex, yylloc, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact_value_is_default, YYPOPSTACK, YYSIZE_T, yyss, yyalloc::yyss_alloc, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, yytable_value_is_error, YYTERROR, YYTRANSLATE, yyval, yyvs, yyalloc::yyvs_alloc, and yyvsp.

Variable Documentation

struct obstack expansion_obstack
static

Definition at line 4976 of file c-exp.c.

Referenced by c_parse(), scan_macro_cleanup(), scan_macro_expansion(), and yylex().

struct macro_scope* expression_macro_scope
static

Definition at line 5035 of file c-exp.c.

const struct token ident_tokens[]
static

Definition at line 4903 of file c-exp.c.

int last_was_structop
static

Definition at line 5045 of file c-exp.c.

Referenced by lex_one_token().

const char* macro_original_text
static

Definition at line 4968 of file c-exp.c.

Referenced by finished_macro_expansion().

struct parser_state* pstate = NULL
static

Definition at line 152 of file c-exp.c.

int saw_name_at_eof
static

Definition at line 5040 of file c-exp.c.

struct obstack tempbuf
static

Definition at line 4574 of file c-exp.c.

Referenced by parse_string_or_char(), and yylex().

int tempbuf_init
static

Definition at line 4575 of file c-exp.c.

const struct token tokentab2[]
static
Initial value:
=
{
{"+=", ASSIGN_MODIFY, BINOP_ADD, 0},
{"-=", ASSIGN_MODIFY, BINOP_SUB, 0},
{"*=", ASSIGN_MODIFY, BINOP_MUL, 0},
{"/=", ASSIGN_MODIFY, BINOP_DIV, 0},
{"%=", ASSIGN_MODIFY, BINOP_REM, 0},
{"|=", ASSIGN_MODIFY, BINOP_BITWISE_IOR, 0},
{"&=", ASSIGN_MODIFY, BINOP_BITWISE_AND, 0},
{"^=", ASSIGN_MODIFY, BINOP_BITWISE_XOR, 0},
{"++", INCREMENT, BINOP_END, 0},
{"--", DECREMENT, BINOP_END, 0},
{"->", ARROW, BINOP_END, 0},
{"&&", ANDAND, BINOP_END, 0},
{"||", OROR, BINOP_END, 0},
{"::", COLONCOLON, BINOP_END, 0},
{"<<", LSH, BINOP_END, 0},
{">>", RSH, BINOP_END, 0},
{"==", EQUAL, BINOP_END, 0},
{"!=", NOTEQUAL, BINOP_END, 0},
{"<=", LEQ, BINOP_END, 0},
{">=", GEQ, BINOP_END, 0},
{".*", DOT_STAR, BINOP_END, FLAG_CXX}
}
#define NOTEQUAL
Definition: c-exp.c:310
#define COLONCOLON
Definition: c-exp.c:282
#define LSH
Definition: c-exp.c:313
#define DECREMENT
Definition: c-exp.c:317
#define INCREMENT
Definition: c-exp.c:316
#define RSH
Definition: c-exp.c:314
#define ANDAND
Definition: c-exp.c:308
#define ASSIGN_MODIFY
Definition: c-exp.c:303
#define GEQ
Definition: c-exp.c:312
#define LEQ
Definition: c-exp.c:311
#define OROR
Definition: c-exp.c:307
#define EQUAL
Definition: c-exp.c:309
#define DOT_STAR
Definition: c-exp.c:320
#define ARROW
Definition: c-exp.c:318

Definition at line 4875 of file c-exp.c.

const struct token tokentab3[]
static
Initial value:
=
{
{">>=", ASSIGN_MODIFY, BINOP_RSH, 0},
{"<<=", ASSIGN_MODIFY, BINOP_LSH, 0},
{"->*", ARROW_STAR, BINOP_END, FLAG_CXX},
{"...", DOTDOTDOT, BINOP_END, 0}
}
#define ARROW_STAR
Definition: c-exp.c:319
#define ASSIGN_MODIFY
Definition: c-exp.c:303
#define DOTDOTDOT
Definition: c-exp.c:323

Definition at line 4867 of file c-exp.c.

int yychar

Definition at line 1789 of file c-exp.c.

const yytype_int16 yycheck[]
static

Definition at line 1077 of file c-exp.c.

int yydebug

Definition at line 1520 of file c-exp.c.

const yytype_uint16 yydefact[]
static

Definition at line 834 of file c-exp.c.

const yytype_int16 yydefgoto[]
static
Initial value:
=
{
-1, 51, 163, 164, 54, 225, 226, 227, 334, 335,
336, 302, 222, 55, 202, 307, 56, 57, 58, 59,
206, 60, 61, 62, 376, 214, 380, 317, 215, 216,
217, 218, 219, 63, 64, 132, 322, 305, 65, 110,
236, 66, 67, 68, 337, 69
}

Definition at line 891 of file c-exp.c.

YYSTYPE yylval

Definition at line 1792 of file c-exp.c.

int yynerrs

Definition at line 1794 of file c-exp.c.

const yytype_int16 yypact[]
static

Definition at line 785 of file c-exp.c.

const yytype_int16 yypgoto[]
static
Initial value:
=
{
-217, -217, 3, 14, -11, -217, -217, -217, -31, -217,
18, -217, -217, -217, -216, 153, -217, -217, -217, -122,
-217, -188, -217, -63, -26, -101, -217, -217, -217, 143,
146, -213, -212, -124, 39, 333, 170, -217, -217, -217,
159, -217, -182, -5, 6, 350
}

Definition at line 881 of file c-exp.c.

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 90, 91, 91, 92, 92, 92, 92, 93, 93,
94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
94, 94, 94, 94, 94, 94, 94, 94, 94, 95,
94, 96, 94, 97, 94, 98, 98, 99, 99, 100,
100, 100, 101, 94, 102, 94, 103, 104, 104, 104,
94, 105, 94, 94, 94, 94, 94, 94, 94, 94,
94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
94, 106, 106, 94, 94, 94, 94, 107, 107, 107,
108, 108, 109, 109, 109, 108, 108, 108, 110, 111,
111, 112, 113, 113, 114, 114, 116, 115, 117, 115,
115, 115, 118, 119, 119, 119, 120, 120, 120, 120,
120, 121, 121, 121, 121, 122, 122, 123, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 125, 125, 125, 125,
126, 126, 127, 127, 128, 128, 129, 130, 130, 131,
131, 132, 132, 132, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
133, 134, 134, 134, 134, 134, 134, 135, 135, 135,
135
}

Definition at line 1300 of file c-exp.c.

const yytype_uint8 yyr2[]
static
Initial value:
=
{
0, 2, 1, 1, 1, 4, 4, 4, 1, 3,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
4, 4, 2, 3, 4, 3, 4, 5, 3, 3,
3, 4, 3, 4, 5, 3, 3, 4, 4, 0,
5, 0, 5, 0, 5, 1, 1, 1, 2, 3,
2, 2, 0, 5, 0, 5, 1, 0, 1, 3,
5, 1, 3, 4, 4, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 5, 3, 3, 1, 1,
1, 1, 1, 1, 1, 4, 4, 7, 7, 7,
7, 1, 2, 1, 1, 1, 1, 1, 1, 3,
2, 3, 3, 4, 5, 1, 2, 1, 2, 1,
0, 3, 1, 1, 1, 0, 0, 4, 0, 3,
1, 2, 1, 2, 1, 1, 3, 2, 1, 2,
1, 2, 2, 3, 3, 2, 3, 1, 1, 1,
1, 1, 2, 3, 2, 3, 3, 3, 2, 2,
3, 4, 3, 3, 4, 3, 4, 3, 4, 2,
3, 2, 3, 2, 3, 1, 2, 2, 2, 3,
2, 2, 3, 2, 2, 3, 2, 2, 3, 2,
1, 2, 1, 5, 2, 2, 1, 1, 1, 1,
1, 3, 1, 3, 1, 2, 2, 0, 2, 2,
2, 1, 1, 1, 2, 2, 4, 4, 4, 4,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 3, 3, 3,
2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1
}

Definition at line 1332 of file c-exp.c.

const yytype_uint16 yyrline[]
static
Initial value:
=
{
0, 288, 288, 289, 292, 296, 300, 306, 313, 314,
319, 323, 327, 331, 335, 339, 343, 347, 351, 355,
359, 363, 367, 371, 377, 384, 394, 400, 407, 415,
419, 425, 432, 442, 448, 455, 463, 467, 471, 481,
480, 504, 503, 520, 519, 528, 530, 533, 534, 537,
539, 541, 548, 545, 557, 556, 582, 586, 589, 593,
597, 615, 618, 625, 629, 633, 639, 643, 647, 651,
655, 659, 663, 667, 671, 675, 679, 683, 687, 691,
695, 699, 703, 707, 711, 715, 719, 723, 730, 737,
746, 759, 766, 773, 776, 782, 789, 809, 814, 818,
822, 829, 846, 864, 897, 906, 914, 924, 932, 938,
948, 963, 985, 998, 1022, 1031, 1032, 1060, 1114, 1118,
1119, 1122, 1125, 1126, 1130, 1131, 1136, 1135, 1139, 1138,
1141, 1143, 1147, 1156, 1158, 1159, 1162, 1164, 1171, 1178,
1184, 1191, 1193, 1195, 1197, 1201, 1203, 1215, 1219, 1221,
1225, 1229, 1233, 1237, 1241, 1245, 1249, 1253, 1257, 1261,
1265, 1269, 1273, 1277, 1281, 1285, 1289, 1293, 1297, 1301,
1305, 1309, 1313, 1317, 1321, 1325, 1331, 1337, 1340, 1345,
1351, 1354, 1359, 1365, 1368, 1373, 1379, 1382, 1387, 1393,
1397, 1401, 1405, 1412, 1416, 1418, 1422, 1423, 1431, 1439,
1450, 1452, 1461, 1467, 1474, 1475, 1482, 1486, 1487, 1490,
1491, 1494, 1498, 1500, 1504, 1506, 1508, 1510, 1512, 1514,
1516, 1518, 1520, 1522, 1524, 1526, 1528, 1530, 1532, 1534,
1536, 1538, 1540, 1542, 1582, 1584, 1586, 1588, 1590, 1592,
1594, 1596, 1598, 1600, 1602, 1604, 1606, 1608, 1610, 1612,
1614, 1630, 1631, 1632, 1633, 1634, 1635, 1638, 1639, 1647,
1659
}

Definition at line 692 of file c-exp.c.

const yytype_uint8 yystos[]
static

Definition at line 1253 of file c-exp.c.

const yytype_int16 yytable[]
static

Definition at line 903 of file c-exp.c.

const char* const yytname[]
static
Initial value:
=
{
"$end", "error", "$undefined", "INT", "FLOAT", "DECFLOAT", "STRING",
"NSSTRING", "SELECTOR", "CHAR", "NAME", "UNKNOWN_CPP_NAME", "COMPLETE",
"TYPENAME", "CLASSNAME", "OBJC_LBRAC", "NAME_OR_INT", "OPERATOR",
"STRUCT", "CLASS", "UNION", "ENUM", "SIZEOF", "UNSIGNED", "COLONCOLON",
"TEMPLATE", "ERROR", "NEW", "DELETE", "REINTERPRET_CAST", "DYNAMIC_CAST",
"STATIC_CAST", "CONST_CAST", "ENTRY", "TYPEOF", "DECLTYPE", "TYPEID",
"SIGNED_KEYWORD", "LONG", "SHORT", "INT_KEYWORD", "CONST_KEYWORD",
"VOLATILE_KEYWORD", "DOUBLE_KEYWORD", "VARIABLE", "ASSIGN_MODIFY",
"TRUEKEYWORD", "FALSEKEYWORD", "','", "ABOVE_COMMA", "'='", "'?'",
"OROR", "ANDAND", "'|'", "'^'", "'&'", "EQUAL", "NOTEQUAL", "'<'", "'>'",
"LEQ", "GEQ", "LSH", "RSH", "'@'", "'+'", "'-'", "'*'", "'/'", "'%'",
"UNARY", "INCREMENT", "DECREMENT", "ARROW", "ARROW_STAR", "'.'",
"DOT_STAR", "'['", "'('", "BLOCKNAME", "FILENAME", "DOTDOTDOT", "')'",
"'!'", "'~'", "']'", "':'", "'{'", "'}'", "$accept", "start", "type_exp",
"exp1", "exp", "$@1", "$@2", "$@3", "msglist", "msgarglist", "msgarg",
"$@4", "$@5", "lcurly", "arglist", "rcurly", "string_exp", "block",
"variable", "qualified_name", "space_identifier", "const_or_volatile",
"cv_with_space_id", "const_or_volatile_or_space_identifier_noopt",
"const_or_volatile_or_space_identifier", "ptr_operator", "$@6", "$@7",
"ptr_operator_ts", "abs_decl", "direct_abs_decl", "array_mod",
"func_mod", "type", "typebase", "type_name", "parameter_typelist",
"nonempty_typelist", "ptype", "conversion_type_id",
"conversion_declarator", "const_and_volatile", "const_or_volatile_noopt",
"oper", "name", "name_not_typename", YY_NULLPTR
}
#define YY_NULLPTR
Definition: c-exp.c:169

Definition at line 727 of file c-exp.c.

const yytype_uint16 yytoknum[]
static
Initial value:
=
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299, 300, 301, 302, 44, 303,
61, 63, 304, 305, 124, 94, 38, 306, 307, 60,
62, 308, 309, 310, 311, 64, 43, 45, 42, 47,
37, 312, 313, 314, 315, 316, 46, 317, 91, 40,
318, 319, 320, 41, 33, 126, 93, 58, 123, 125
}

Definition at line 759 of file c-exp.c.

Referenced by yy_symbol_value_print().

const yytype_uint8 yytranslate[]
static

Definition at line 653 of file c-exp.c.