GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
d-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 "d-lang.h"
#include "charset.h"
#include "block.h"
#include "type-stack.h"
#include "expop.h"
#include "yy-remap.h"
#include <limits.h>

Go to the source code of this file.

Classes

union  d_exp_YYSTYPE
 
union  d_exp_yyalloc
 
struct  d_token
 
struct  d_token_and_value
 

Macros

#define YYBISON   30802
 
#define YYBISON_VERSION   "3.8.2"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define parse_type(ps)   builtin_type (ps->gdbarch ())
 
#define parse_d_type(ps)   builtin_d_type (ps->gdbarch ())
 
#define GDB_YY_REMAP_PREFIX   d_
 
#define YY_CAST(Type, Val)   ((Type) (Val))
 
#define YY_REINTERPRET_CAST(Type, Val)   ((Type) (Val))
 
#define YY_NULLPTRPTR   ((void*)0)
 
#define YYTOKENTYPE
 
#define YYEMPTY   -2
 
#define YYEOF   0
 
#define YYerror   256
 
#define YYUNDEF   257
 
#define IDENTIFIER   258
 
#define UNKNOWN_NAME   259
 
#define TYPENAME   260
 
#define COMPLETE   261
 
#define NAME_OR_INT   262
 
#define INTEGER_LITERAL   263
 
#define FLOAT_LITERAL   264
 
#define CHARACTER_LITERAL   265
 
#define STRING_LITERAL   266
 
#define ENTRY   267
 
#define ERROR   268
 
#define TRUE_KEYWORD   269
 
#define FALSE_KEYWORD   270
 
#define NULL_KEYWORD   271
 
#define SUPER_KEYWORD   272
 
#define CAST_KEYWORD   273
 
#define SIZEOF_KEYWORD   274
 
#define TYPEOF_KEYWORD   275
 
#define TYPEID_KEYWORD   276
 
#define INIT_KEYWORD   277
 
#define IMMUTABLE_KEYWORD   278
 
#define CONST_KEYWORD   279
 
#define SHARED_KEYWORD   280
 
#define STRUCT_KEYWORD   281
 
#define UNION_KEYWORD   282
 
#define CLASS_KEYWORD   283
 
#define INTERFACE_KEYWORD   284
 
#define ENUM_KEYWORD   285
 
#define TEMPLATE_KEYWORD   286
 
#define DELEGATE_KEYWORD   287
 
#define FUNCTION_KEYWORD   288
 
#define DOLLAR_VARIABLE   289
 
#define ASSIGN_MODIFY   290
 
#define OROR   291
 
#define ANDAND   292
 
#define EQUAL   293
 
#define NOTEQUAL   294
 
#define LEQ   295
 
#define GEQ   296
 
#define LSH   297
 
#define RSH   298
 
#define HATHAT   299
 
#define IDENTITY   300
 
#define NOTIDENTITY   301
 
#define INCREMENT   302
 
#define DECREMENT   303
 
#define DOTDOT   304
 
#define d_exp_YYSTYPE_IS_TRIVIAL   1
 
#define d_exp_YYSTYPE_IS_DECLARED   1
 
#define YYPTRDIFF_T   long
 
#define YYPTRDIFF_MAXIMUM   LONG_MAX
 
#define YYSIZE_T   unsigned
 
#define YYSIZE_MAXIMUM
 
#define YYSIZEOF(X)   YY_CAST (YYPTRDIFF_T, sizeof (X))
 
#define YY_(Msgid)   Msgid
 
#define YY_ATTRIBUTE_PURE
 
#define YY_ATTRIBUTE_UNUSED
 
#define YY_USE(E)   ((void) (E))
 
#define YY_INITIAL_VALUE(Value)   Value
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_IGNORE_USELESS_CAST_BEGIN
 
#define YY_IGNORE_USELESS_CAST_END
 
#define YY_ASSERT(E)   ((void) (0 && (E)))
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYMALLOC   xmalloc
 
#define YYFREE   xfree
 
#define YYSTACK_GAP_MAXIMUM   (YYSIZEOF (union d_exp_yyalloc) - 1)
 
#define YYSTACK_BYTES(N)
 
#define YYCOPY_NEEDED   1
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYFINAL   70
 
#define YYLAST   200
 
#define YYNTOKENS   71
 
#define YYNNTS   35
 
#define YYNRULES   104
 
#define YYNSTATES   169
 
#define YYMAXUTOK   304
 
#define YYTRANSLATE(YYX)
 
#define YY_ACCESSING_SYMBOL(State)   YY_CAST (d_exp_yysymbol_kind_t, yystos[State])
 
#define YYPACT_NINF   (-91)
 
#define yypact_value_is_default(Yyn)    ((Yyn) == YYPACT_NINF)
 
#define YYTABLE_NINF   (-1)
 
#define yytable_value_is_error(Yyn)    0
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYACCEPT   goto yyacceptlab
 
#define YYABORT   goto yyabortlab
 
#define YYERROR   goto yyerrorlab
 
#define YYNOMEM   goto yyexhaustedlab
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYERRCODE   YYUNDEF
 
#define YYDPRINTF(Args)
 
#define YY_SYMBOL_PRINT(Title, Kind, 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 enum yytokentype yytoken_kind_t
 
typedef union d_exp_YYSTYPE d_exp_YYSTYPE
 
typedef enum d_exp_yysymbol_kind_t d_exp_yysymbol_kind_t
 
typedef signed char yytype_int8
 
typedef short yytype_int16
 
typedef unsigned char yytype_uint8
 
typedef unsigned short yytype_uint16
 
typedef yytype_uint8 yy_state_t
 
typedef int yy_state_fast_t
 

Enumerations

enum  yytokentype {
  YYEMPTY = -2 , YYEOF = 0 , YYerror = 256 , YYUNDEF = 257 ,
  IDENTIFIER = 258 , UNKNOWN_NAME = 259 , TYPENAME = 260 , COMPLETE = 261 ,
  NAME_OR_INT = 262 , INTEGER_LITERAL = 263 , FLOAT_LITERAL = 264 , CHARACTER_LITERAL = 265 ,
  STRING_LITERAL = 266 , ENTRY = 267 , ERROR = 268 , TRUE_KEYWORD = 269 ,
  FALSE_KEYWORD = 270 , NULL_KEYWORD = 271 , SUPER_KEYWORD = 272 , CAST_KEYWORD = 273 ,
  SIZEOF_KEYWORD = 274 , TYPEOF_KEYWORD = 275 , TYPEID_KEYWORD = 276 , INIT_KEYWORD = 277 ,
  IMMUTABLE_KEYWORD = 278 , CONST_KEYWORD = 279 , SHARED_KEYWORD = 280 , STRUCT_KEYWORD = 281 ,
  UNION_KEYWORD = 282 , CLASS_KEYWORD = 283 , INTERFACE_KEYWORD = 284 , ENUM_KEYWORD = 285 ,
  TEMPLATE_KEYWORD = 286 , DELEGATE_KEYWORD = 287 , FUNCTION_KEYWORD = 288 , DOLLAR_VARIABLE = 289 ,
  ASSIGN_MODIFY = 290 , OROR = 291 , ANDAND = 292 , EQUAL = 293 ,
  NOTEQUAL = 294 , LEQ = 295 , GEQ = 296 , LSH = 297 ,
  RSH = 298 , HATHAT = 299 , IDENTITY = 300 , NOTIDENTITY = 301 ,
  INCREMENT = 302 , DECREMENT = 303 , DOTDOT = 304
}
 
enum  d_exp_yysymbol_kind_t {
  YYSYMBOL_YYEMPTY = -2 , YYSYMBOL_YYEOF = 0 , YYSYMBOL_YYerror = 1 , YYSYMBOL_YYUNDEF = 2 ,
  YYSYMBOL_IDENTIFIER = 3 , YYSYMBOL_UNKNOWN_NAME = 4 , YYSYMBOL_TYPENAME = 5 , YYSYMBOL_COMPLETE = 6 ,
  YYSYMBOL_NAME_OR_INT = 7 , YYSYMBOL_INTEGER_LITERAL = 8 , YYSYMBOL_FLOAT_LITERAL = 9 , YYSYMBOL_CHARACTER_LITERAL = 10 ,
  YYSYMBOL_STRING_LITERAL = 11 , YYSYMBOL_ENTRY = 12 , YYSYMBOL_ERROR = 13 , YYSYMBOL_TRUE_KEYWORD = 14 ,
  YYSYMBOL_FALSE_KEYWORD = 15 , YYSYMBOL_NULL_KEYWORD = 16 , YYSYMBOL_SUPER_KEYWORD = 17 , YYSYMBOL_CAST_KEYWORD = 18 ,
  YYSYMBOL_SIZEOF_KEYWORD = 19 , YYSYMBOL_TYPEOF_KEYWORD = 20 , YYSYMBOL_TYPEID_KEYWORD = 21 , YYSYMBOL_INIT_KEYWORD = 22 ,
  YYSYMBOL_IMMUTABLE_KEYWORD = 23 , YYSYMBOL_CONST_KEYWORD = 24 , YYSYMBOL_SHARED_KEYWORD = 25 , YYSYMBOL_STRUCT_KEYWORD = 26 ,
  YYSYMBOL_UNION_KEYWORD = 27 , YYSYMBOL_CLASS_KEYWORD = 28 , YYSYMBOL_INTERFACE_KEYWORD = 29 , YYSYMBOL_ENUM_KEYWORD = 30 ,
  YYSYMBOL_TEMPLATE_KEYWORD = 31 , YYSYMBOL_DELEGATE_KEYWORD = 32 , YYSYMBOL_FUNCTION_KEYWORD = 33 , YYSYMBOL_DOLLAR_VARIABLE = 34 ,
  YYSYMBOL_ASSIGN_MODIFY = 35 , YYSYMBOL_36_ = 36 , YYSYMBOL_37_ = 37 , YYSYMBOL_38_ = 38 ,
  YYSYMBOL_OROR = 39 , YYSYMBOL_ANDAND = 40 , YYSYMBOL_41_ = 41 , YYSYMBOL_42_ = 42 ,
  YYSYMBOL_43_ = 43 , YYSYMBOL_EQUAL = 44 , YYSYMBOL_NOTEQUAL = 45 , YYSYMBOL_46_ = 46 ,
  YYSYMBOL_47_ = 47 , YYSYMBOL_LEQ = 48 , YYSYMBOL_GEQ = 49 , YYSYMBOL_LSH = 50 ,
  YYSYMBOL_RSH = 51 , YYSYMBOL_52_ = 52 , YYSYMBOL_53_ = 53 , YYSYMBOL_54_ = 54 ,
  YYSYMBOL_55_ = 55 , YYSYMBOL_56_ = 56 , YYSYMBOL_HATHAT = 57 , YYSYMBOL_IDENTITY = 58 ,
  YYSYMBOL_NOTIDENTITY = 59 , YYSYMBOL_INCREMENT = 60 , YYSYMBOL_DECREMENT = 61 , YYSYMBOL_62_ = 62 ,
  YYSYMBOL_63_ = 63 , YYSYMBOL_64_ = 64 , YYSYMBOL_DOTDOT = 65 , YYSYMBOL_66_ = 66 ,
  YYSYMBOL_67_ = 67 , YYSYMBOL_68_ = 68 , YYSYMBOL_69_ = 69 , YYSYMBOL_70_ = 70 ,
  YYSYMBOL_YYACCEPT = 71 , YYSYMBOL_start = 72 , YYSYMBOL_Expression = 73 , YYSYMBOL_CommaExpression = 74 ,
  YYSYMBOL_AssignExpression = 75 , YYSYMBOL_ConditionalExpression = 76 , YYSYMBOL_OrOrExpression = 77 , YYSYMBOL_AndAndExpression = 78 ,
  YYSYMBOL_OrExpression = 79 , YYSYMBOL_XorExpression = 80 , YYSYMBOL_AndExpression = 81 , YYSYMBOL_CmpExpression = 82 ,
  YYSYMBOL_EqualExpression = 83 , YYSYMBOL_IdentityExpression = 84 , YYSYMBOL_RelExpression = 85 , YYSYMBOL_ShiftExpression = 86 ,
  YYSYMBOL_AddExpression = 87 , YYSYMBOL_MulExpression = 88 , YYSYMBOL_UnaryExpression = 89 , YYSYMBOL_CastExpression = 90 ,
  YYSYMBOL_PowExpression = 91 , YYSYMBOL_PostfixExpression = 92 , YYSYMBOL_ArgumentList = 93 , YYSYMBOL_ArgumentList_opt = 94 ,
  YYSYMBOL_CallExpression = 95 , YYSYMBOL_96_1 = 96 , YYSYMBOL_IndexExpression = 97 , YYSYMBOL_SliceExpression = 98 ,
  YYSYMBOL_PrimaryExpression = 99 , YYSYMBOL_ArrayLiteral = 100 , YYSYMBOL_IdentifierExp = 101 , YYSYMBOL_StringExp = 102 ,
  YYSYMBOL_TypeExp = 103 , YYSYMBOL_BasicType2 = 104 , YYSYMBOL_BasicType = 105
}
 
enum  { YYENOMEM = -2 }
 

Functions

int yyparse (void)
 
static int yylex (void)
 
static void yyerror (const char *)
 
static int type_aggregate_p (struct type *)
 
static int parse_number (struct parser_state *, const char *, int, int, d_exp_YYSTYPE *)
 
void * xmalloc (YYSIZE_T)
 
void xfree (void *)
 
static const char * yysymbol_name (d_exp_yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED
 
static void yy_symbol_value_print (FILE *yyo, d_exp_yysymbol_kind_t yykind, d_exp_YYSTYPE const *const yyvaluep)
 
static void yy_symbol_print (FILE *yyo, d_exp_yysymbol_kind_t yykind, d_exp_YYSTYPE const *const yyvaluep)
 
static void yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
 
static void yy_reduce_print (yy_state_t *yyssp, d_exp_YYSTYPE *yyvsp, int yyrule)
 
static void yydestruct (const char *yymsg, d_exp_yysymbol_kind_t yykind, d_exp_YYSTYPE *yyvaluep)
 
static int parse_string_or_char (const char *tokptr, const char **outptr, struct typed_stoken *value, int *host_chars)
 
static int lex_one_token (struct parser_state *par_state)
 
static int classify_name (struct parser_state *par_state, const struct block *block)
 
static int classify_inner_name (struct parser_state *par_state, const struct block *block, struct type *context)
 
int d_parse (struct parser_state *par_state)
 

Variables

static struct parser_statepstate = NULL
 
static struct type_stack * type_stack
 
int yydebug
 
d_exp_YYSTYPE yylval
 
static const yytype_int8 yytranslate []
 
static const yytype_int16 yyrline []
 
static const char *const yytname []
 
static const yytype_int16 yypact []
 
static const yytype_int8 yydefact []
 
static const yytype_int8 yypgoto []
 
static const yytype_uint8 yydefgoto []
 
static const yytype_uint8 yytable []
 
static const yytype_int16 yycheck []
 
static const yytype_int8 yystos []
 
static const yytype_int8 yyr1 []
 
static const yytype_int8 yyr2 []
 
int yychar
 
int yynerrs
 
static struct obstack tempbuf
 
static int tempbuf_init
 
static const struct d_token tokentab3 []
 
static const struct d_token tokentab2 []
 
static const struct d_token ident_tokens []
 
static int saw_name_at_eof
 
static int last_was_structop
 
static int paren_depth
 
static std::vector< d_token_and_valuetoken_fifo
 
static int popping
 
static auto_obstack name_obstack
 

Macro Definition Documentation

◆ ANDAND

#define ANDAND   292

Definition at line 243 of file d-exp.c.

◆ ASSIGN_MODIFY

#define ASSIGN_MODIFY   290

Definition at line 241 of file d-exp.c.

◆ CAST_KEYWORD

#define CAST_KEYWORD   273

Definition at line 224 of file d-exp.c.

◆ CHARACTER_LITERAL

#define CHARACTER_LITERAL   265

Definition at line 216 of file d-exp.c.

Referenced by lex_one_token(), and parse_string_or_char().

◆ CLASS_KEYWORD

#define CLASS_KEYWORD   283

Definition at line 234 of file d-exp.c.

◆ COMPLETE

#define COMPLETE   261

Definition at line 212 of file d-exp.c.

Referenced by lex_one_token().

◆ CONST_KEYWORD

#define CONST_KEYWORD   279

Definition at line 230 of file d-exp.c.

◆ d_exp_YYSTYPE_IS_DECLARED

#define d_exp_YYSTYPE_IS_DECLARED   1

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

◆ d_exp_YYSTYPE_IS_TRIVIAL

#define d_exp_YYSTYPE_IS_TRIVIAL   1

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

◆ DECREMENT

#define DECREMENT   303

Definition at line 254 of file d-exp.c.

◆ DELEGATE_KEYWORD

#define DELEGATE_KEYWORD   287

Definition at line 238 of file d-exp.c.

◆ DOLLAR_VARIABLE

#define DOLLAR_VARIABLE   289

Definition at line 240 of file d-exp.c.

Referenced by lex_one_token().

◆ DOTDOT

#define DOTDOT   304

Definition at line 255 of file d-exp.c.

◆ ENTRY

#define ENTRY   267

Definition at line 218 of file d-exp.c.

Referenced by lex_one_token().

◆ ENUM_KEYWORD

#define ENUM_KEYWORD   285

Definition at line 236 of file d-exp.c.

◆ EQUAL

#define EQUAL   293

Definition at line 244 of file d-exp.c.

◆ ERROR

#define ERROR   268

Definition at line 219 of file d-exp.c.

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

◆ FALSE_KEYWORD

#define FALSE_KEYWORD   270

Definition at line 221 of file d-exp.c.

◆ FLOAT_LITERAL

#define FLOAT_LITERAL   264

Definition at line 215 of file d-exp.c.

Referenced by parse_number().

◆ FUNCTION_KEYWORD

#define FUNCTION_KEYWORD   288

Definition at line 239 of file d-exp.c.

◆ GDB_YY_REMAP_PREFIX

#define GDB_YY_REMAP_PREFIX   d_

Definition at line 91 of file d-exp.c.

◆ GEQ

#define GEQ   296

Definition at line 247 of file d-exp.c.

◆ HATHAT

#define HATHAT   299

Definition at line 250 of file d-exp.c.

◆ IDENTIFIER

#define IDENTIFIER   258

Definition at line 209 of file d-exp.c.

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

◆ IDENTITY

#define IDENTITY   300

Definition at line 251 of file d-exp.c.

◆ IMMUTABLE_KEYWORD

#define IMMUTABLE_KEYWORD   278

Definition at line 229 of file d-exp.c.

◆ INCREMENT

#define INCREMENT   302

Definition at line 253 of file d-exp.c.

◆ INIT_KEYWORD

#define INIT_KEYWORD   277

Definition at line 228 of file d-exp.c.

◆ INTEGER_LITERAL

#define INTEGER_LITERAL   263

Definition at line 214 of file d-exp.c.

Referenced by lex_one_token(), and parse_number().

◆ INTERFACE_KEYWORD

#define INTERFACE_KEYWORD   284

Definition at line 235 of file d-exp.c.

◆ LEQ

#define LEQ   295

Definition at line 246 of file d-exp.c.

◆ LSH

#define LSH   297

Definition at line 248 of file d-exp.c.

◆ NAME_OR_INT

#define NAME_OR_INT   262

Definition at line 213 of file d-exp.c.

Referenced by lex_one_token().

◆ NOTEQUAL

#define NOTEQUAL   294

Definition at line 245 of file d-exp.c.

◆ NOTIDENTITY

#define NOTIDENTITY   301

Definition at line 252 of file d-exp.c.

◆ NULL_KEYWORD

#define NULL_KEYWORD   271

Definition at line 222 of file d-exp.c.

◆ OROR

#define OROR   291

Definition at line 242 of file d-exp.c.

◆ parse_d_type

#define parse_d_type ( ps)    builtin_d_type (ps->gdbarch ())

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

Referenced by parse_number(), and yyparse().

◆ parse_type

#define parse_type ( ps)    builtin_type (ps->gdbarch ())

Definition at line 86 of file d-exp.c.

◆ RSH

#define RSH   298

Definition at line 249 of file d-exp.c.

◆ SHARED_KEYWORD

#define SHARED_KEYWORD   280

Definition at line 231 of file d-exp.c.

◆ SIZEOF_KEYWORD

#define SIZEOF_KEYWORD   274

Definition at line 225 of file d-exp.c.

◆ STRING_LITERAL

#define STRING_LITERAL   266

Definition at line 217 of file d-exp.c.

Referenced by parse_string_or_char().

◆ STRUCT_KEYWORD

#define STRUCT_KEYWORD   281

Definition at line 232 of file d-exp.c.

◆ SUPER_KEYWORD

#define SUPER_KEYWORD   272

Definition at line 223 of file d-exp.c.

◆ TEMPLATE_KEYWORD

#define TEMPLATE_KEYWORD   286

Definition at line 237 of file d-exp.c.

◆ TRUE_KEYWORD

#define TRUE_KEYWORD   269

Definition at line 220 of file d-exp.c.

◆ TYPEID_KEYWORD

#define TYPEID_KEYWORD   276

Definition at line 227 of file d-exp.c.

◆ TYPENAME

#define TYPENAME   260

Definition at line 211 of file d-exp.c.

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

◆ TYPEOF_KEYWORD

#define TYPEOF_KEYWORD   275

Definition at line 226 of file d-exp.c.

◆ UNION_KEYWORD

#define UNION_KEYWORD   282

Definition at line 233 of file d-exp.c.

◆ UNKNOWN_NAME

#define UNKNOWN_NAME   259

Definition at line 210 of file d-exp.c.

Referenced by classify_name(), and yylex().

◆ YY_

#define YY_ ( Msgid)    Msgid

Definition at line 546 of file d-exp.c.

Referenced by yyparse().

◆ YY_ACCESSING_SYMBOL

#define YY_ACCESSING_SYMBOL ( State)    YY_CAST (d_exp_yysymbol_kind_t, yystos[State])

Accessing symbol of state STATE.

Definition at line 821 of file d-exp.c.

Referenced by yy_reduce_print(), and yyparse().

◆ YY_ASSERT

#define YY_ASSERT ( E)    ((void) (0 && (E)))

Definition at line 612 of file d-exp.c.

Referenced by yyparse().

◆ YY_ATTRIBUTE_PURE

#define YY_ATTRIBUTE_PURE

Definition at line 555 of file d-exp.c.

◆ YY_ATTRIBUTE_UNUSED

#define YY_ATTRIBUTE_UNUSED

Definition at line 563 of file d-exp.c.

◆ YY_CAST

#define YY_CAST ( Type,
Val )   ((Type) (Val))

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

Referenced by yyparse().

◆ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 592 of file d-exp.c.

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

◆ YY_IGNORE_MAYBE_UNINITIALIZED_END

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 593 of file d-exp.c.

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

◆ YY_IGNORE_USELESS_CAST_BEGIN

#define YY_IGNORE_USELESS_CAST_BEGIN

Definition at line 607 of file d-exp.c.

Referenced by yyparse().

◆ YY_IGNORE_USELESS_CAST_END

#define YY_IGNORE_USELESS_CAST_END

Definition at line 608 of file d-exp.c.

Referenced by yyparse().

◆ YY_INITIAL_VALUE

#define YY_INITIAL_VALUE ( Value)    Value

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

◆ YY_NULLPTRPTR

#define YY_NULLPTRPTR   ((void*)0)

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

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT ( Rule)
Value:
do { \
if (yydebug) \
yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)
int yydebug
Definition d-exp.c:1200
#define yyvsp
Definition yy-remap.h:87
#define yyssp
Definition yy-remap.h:84

Definition at line 1192 of file d-exp.c.

Referenced by yyparse().

◆ YY_REINTERPRET_CAST

#define YY_REINTERPRET_CAST ( Type,
Val )   ((Type) (Val))

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

◆ YY_STACK_PRINT

#define YY_STACK_PRINT ( Bottom,
Top )
Value:
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (0)

Definition at line 1161 of file d-exp.c.

Referenced by yyparse().

◆ YY_SYMBOL_PRINT

#define YY_SYMBOL_PRINT ( Title,
Kind,
Value,
Location )
Value:
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Kind, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)

Definition at line 1099 of file d-exp.c.

Referenced by yydestruct(), and yyparse().

◆ YY_USE

#define YY_USE ( E)    ((void) (E))

Definition at line 569 of file d-exp.c.

Referenced by yy_symbol_value_print(), and yydestruct().

◆ YYABORT

#define YYABORT   goto yyabortlab

Definition at line 1053 of file d-exp.c.

Referenced by yyparse().

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

Definition at line 1052 of file d-exp.c.

Referenced by yyparse().

◆ YYBACKUP

#define YYBACKUP ( Token,
Value )
Value:
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
} \
while (0)
#define YY_(Msgid)
Definition d-exp.c:546
d_exp_YYSTYPE yylval
Definition d-exp.c:1253
int yychar
Definition d-exp.c:1250
#define YYEMPTY
Definition d-exp.c:205
#define YYERROR
Definition d-exp.c:1054
#define yylen
Definition yy-remap.h:74
#define yystate
Definition yy-remap.h:63

Definition at line 1060 of file d-exp.c.

◆ YYBISON

#define YYBISON   30802

Definition at line 49 of file d-exp.c.

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.8.2"

Definition at line 52 of file d-exp.c.

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

Definition at line 1050 of file d-exp.c.

◆ YYCOPY

#define YYCOPY ( Dst,
Src,
Count )
Value:
do \
{ \
YYPTRDIFF_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
#define YYPTRDIFF_T
Definition d-exp.c:505

Definition at line 728 of file d-exp.c.

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

Definition at line 700 of file d-exp.c.

◆ YYDPRINTF

#define YYDPRINTF ( Args)
Value:
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (0)
#define YYFPRINTF
Definition yy-remap.h:97

Definition at line 1090 of file d-exp.c.

Referenced by yyparse().

◆ YYEMPTY

#define YYEMPTY   -2

Definition at line 205 of file d-exp.c.

Referenced by yyparse().

◆ YYEOF

#define YYEOF   0

Definition at line 206 of file d-exp.c.

Referenced by yyparse().

◆ YYERRCODE

#define YYERRCODE   YYUNDEF

Definition at line 1079 of file d-exp.c.

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

Definition at line 1049 of file d-exp.c.

◆ YYerror

#define YYerror   256

Definition at line 207 of file d-exp.c.

Referenced by yyparse().

◆ YYERROR

#define YYERROR   goto yyerrorlab

Definition at line 1054 of file d-exp.c.

Referenced by yyparse().

◆ YYFINAL

#define YYFINAL   70

Definition at line 741 of file d-exp.c.

Referenced by yyparse().

◆ YYFREE

#define YYFREE   xfree

Definition at line 672 of file d-exp.c.

◆ YYINITDEPTH

#define YYINITDEPTH   200

Definition at line 1211 of file d-exp.c.

Referenced by yyparse().

◆ YYLAST

#define YYLAST   200

Definition at line 743 of file d-exp.c.

Referenced by yyparse().

◆ YYMALLOC

#define YYMALLOC   xmalloc

Definition at line 666 of file d-exp.c.

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

Definition at line 1222 of file d-exp.c.

Referenced by yyparse().

◆ YYMAXUTOK

#define YYMAXUTOK   304

Definition at line 755 of file d-exp.c.

◆ YYNNTS

#define YYNNTS   35

Definition at line 748 of file d-exp.c.

◆ YYNOMEM

#define YYNOMEM   goto yyexhaustedlab

Definition at line 1055 of file d-exp.c.

Referenced by yyparse().

◆ YYNRULES

#define YYNRULES   104

Definition at line 750 of file d-exp.c.

◆ YYNSTATES

#define YYNSTATES   169

Definition at line 752 of file d-exp.c.

Referenced by yyparse().

◆ YYNTOKENS

#define YYNTOKENS   71

Definition at line 746 of file d-exp.c.

Referenced by yy_symbol_print(), and yyparse().

◆ YYPACT_NINF

#define YYPACT_NINF   (-91)

Definition at line 863 of file d-exp.c.

◆ yypact_value_is_default

#define yypact_value_is_default ( Yyn)     ((Yyn) == YYPACT_NINF)

Definition at line 865 of file d-exp.c.

Referenced by yyparse().

◆ YYPOPSTACK

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

◆ YYPTRDIFF_MAXIMUM

#define YYPTRDIFF_MAXIMUM   LONG_MAX

Definition at line 506 of file d-exp.c.

◆ YYPTRDIFF_T

#define YYPTRDIFF_T   long

Definition at line 505 of file d-exp.c.

Referenced by yyparse().

◆ YYPULL

#define YYPULL   1

Definition at line 64 of file d-exp.c.

◆ YYPURE

#define YYPURE   0

Definition at line 58 of file d-exp.c.

◆ YYPUSH

#define YYPUSH   0

Definition at line 61 of file d-exp.c.

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 1058 of file d-exp.c.

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM
Value:
: YY_CAST (YYSIZE_T, -1)))
#define YYPTRDIFF_MAXIMUM
Definition d-exp.c:506
#define YY_CAST(Type, Val)
Definition d-exp.c:120
#define YYSIZE_T
Definition d-exp.c:519

Definition at line 523 of file d-exp.c.

◆ YYSIZE_T

#define YYSIZE_T   unsigned

Definition at line 519 of file d-exp.c.

Referenced by yyparse().

◆ YYSIZEOF

#define YYSIZEOF ( X)    YY_CAST (YYPTRDIFF_T, sizeof (X))

Definition at line 529 of file d-exp.c.

Referenced by yyparse().

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

Definition at line 55 of file d-exp.c.

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 652 of file d-exp.c.

Referenced by yyparse().

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 655 of file d-exp.c.

◆ YYSTACK_BYTES

#define YYSTACK_BYTES ( N)
Value:
yytype_uint8 yy_state_t
Definition ada-exp.c:871
#define YYSIZEOF(X)
Definition d-exp.c:529
#define YYSTACK_GAP_MAXIMUM
Definition d-exp.c:692

Definition at line 696 of file d-exp.c.

Referenced by yyparse().

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

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

Referenced by yyparse().

◆ YYSTACK_GAP_MAXIMUM

#define YYSTACK_GAP_MAXIMUM   (YYSIZEOF (union d_exp_yyalloc) - 1)

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

◆ YYSTACK_RELOCATE

#define YYSTACK_RELOCATE ( Stack_alloc,
Stack )
Value:
do \
{ \
YYPTRDIFF_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / YYSIZEOF (*yyptr); \
} \
while (0)
#define yystacksize
Definition yy-remap.h:85

Definition at line 707 of file d-exp.c.

Referenced by yyparse().

◆ YYTABLE_NINF

#define YYTABLE_NINF   (-1)

Definition at line 868 of file d-exp.c.

◆ yytable_value_is_error

#define yytable_value_is_error ( Yyn)     0

Definition at line 870 of file d-exp.c.

Referenced by yyparse().

◆ YYTOKENTYPE

#define YYTOKENTYPE

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

◆ YYTRANSLATE

#define YYTRANSLATE ( YYX)
Value:
(0 <= (YYX) && (YYX) <= YYMAXUTOK \
static const yytype_int8 yytranslate[]
Definition d-exp.c:767
d_exp_yysymbol_kind_t
Definition d-exp.c:301
@ YYSYMBOL_YYUNDEF
Definition d-exp.c:305
#define YYMAXUTOK
Definition d-exp.c:755

Definition at line 760 of file d-exp.c.

Referenced by yyparse().

◆ YYUNDEF

#define YYUNDEF   257

Definition at line 208 of file d-exp.c.

Referenced by yyparse().

Typedef Documentation

◆ d_exp_YYSTYPE

typedef union d_exp_YYSTYPE d_exp_YYSTYPE

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

◆ d_exp_yysymbol_kind_t

Definition at line 410 of file d-exp.c.

◆ yy_state_fast_t

typedef int yy_state_fast_t

Definition at line 536 of file d-exp.c.

◆ yy_state_t

Definition at line 533 of file d-exp.c.

◆ yytoken_kind_t

Definition at line 202 of file d-exp.c.

◆ yytype_int16

typedef short yytype_int16

Definition at line 457 of file d-exp.c.

◆ yytype_int8

typedef signed char yytype_int8

Definition at line 449 of file d-exp.c.

◆ yytype_uint16

typedef unsigned short yytype_uint16

Definition at line 489 of file d-exp.c.

◆ yytype_uint8

typedef unsigned char yytype_uint8

Definition at line 478 of file d-exp.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
YYENOMEM 

Definition at line 1047 of file d-exp.c.

◆ d_exp_yysymbol_kind_t

Enumerator
YYSYMBOL_YYEMPTY 
YYSYMBOL_YYEOF 
YYSYMBOL_YYerror 
YYSYMBOL_YYUNDEF 
YYSYMBOL_IDENTIFIER 
YYSYMBOL_UNKNOWN_NAME 
YYSYMBOL_TYPENAME 
YYSYMBOL_COMPLETE 
YYSYMBOL_NAME_OR_INT 
YYSYMBOL_INTEGER_LITERAL 
YYSYMBOL_FLOAT_LITERAL 
YYSYMBOL_CHARACTER_LITERAL 
YYSYMBOL_STRING_LITERAL 
YYSYMBOL_ENTRY 
YYSYMBOL_ERROR 
YYSYMBOL_TRUE_KEYWORD 
YYSYMBOL_FALSE_KEYWORD 
YYSYMBOL_NULL_KEYWORD 
YYSYMBOL_SUPER_KEYWORD 
YYSYMBOL_CAST_KEYWORD 
YYSYMBOL_SIZEOF_KEYWORD 
YYSYMBOL_TYPEOF_KEYWORD 
YYSYMBOL_TYPEID_KEYWORD 
YYSYMBOL_INIT_KEYWORD 
YYSYMBOL_IMMUTABLE_KEYWORD 
YYSYMBOL_CONST_KEYWORD 
YYSYMBOL_SHARED_KEYWORD 
YYSYMBOL_STRUCT_KEYWORD 
YYSYMBOL_UNION_KEYWORD 
YYSYMBOL_CLASS_KEYWORD 
YYSYMBOL_INTERFACE_KEYWORD 
YYSYMBOL_ENUM_KEYWORD 
YYSYMBOL_TEMPLATE_KEYWORD 
YYSYMBOL_DELEGATE_KEYWORD 
YYSYMBOL_FUNCTION_KEYWORD 
YYSYMBOL_DOLLAR_VARIABLE 
YYSYMBOL_ASSIGN_MODIFY 
YYSYMBOL_36_ 
YYSYMBOL_37_ 
YYSYMBOL_38_ 
YYSYMBOL_OROR 
YYSYMBOL_ANDAND 
YYSYMBOL_41_ 
YYSYMBOL_42_ 
YYSYMBOL_43_ 
YYSYMBOL_EQUAL 
YYSYMBOL_NOTEQUAL 
YYSYMBOL_46_ 
YYSYMBOL_47_ 
YYSYMBOL_LEQ 
YYSYMBOL_GEQ 
YYSYMBOL_LSH 
YYSYMBOL_RSH 
YYSYMBOL_52_ 
YYSYMBOL_53_ 
YYSYMBOL_54_ 
YYSYMBOL_55_ 
YYSYMBOL_56_ 
YYSYMBOL_HATHAT 
YYSYMBOL_IDENTITY 
YYSYMBOL_NOTIDENTITY 
YYSYMBOL_INCREMENT 
YYSYMBOL_DECREMENT 
YYSYMBOL_62_ 
YYSYMBOL_63_ 
YYSYMBOL_64_ 
YYSYMBOL_DOTDOT 
YYSYMBOL_66_ 
YYSYMBOL_67_ 
YYSYMBOL_68_ 
YYSYMBOL_69_ 
YYSYMBOL_70_ 
YYSYMBOL_YYACCEPT 
YYSYMBOL_start 
YYSYMBOL_Expression 
YYSYMBOL_CommaExpression 
YYSYMBOL_AssignExpression 
YYSYMBOL_ConditionalExpression 
YYSYMBOL_OrOrExpression 
YYSYMBOL_AndAndExpression 
YYSYMBOL_OrExpression 
YYSYMBOL_XorExpression 
YYSYMBOL_AndExpression 
YYSYMBOL_CmpExpression 
YYSYMBOL_EqualExpression 
YYSYMBOL_IdentityExpression 
YYSYMBOL_RelExpression 
YYSYMBOL_ShiftExpression 
YYSYMBOL_AddExpression 
YYSYMBOL_MulExpression 
YYSYMBOL_UnaryExpression 
YYSYMBOL_CastExpression 
YYSYMBOL_PowExpression 
YYSYMBOL_PostfixExpression 
YYSYMBOL_ArgumentList 
YYSYMBOL_ArgumentList_opt 
YYSYMBOL_CallExpression 
YYSYMBOL_96_1 
YYSYMBOL_IndexExpression 
YYSYMBOL_SliceExpression 
YYSYMBOL_PrimaryExpression 
YYSYMBOL_ArrayLiteral 
YYSYMBOL_IdentifierExp 
YYSYMBOL_StringExp 
YYSYMBOL_TypeExp 
YYSYMBOL_BasicType2 
YYSYMBOL_BasicType 

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

◆ yytokentype

Enumerator
YYEMPTY 
YYEOF 
YYerror 
YYUNDEF 
IDENTIFIER 
UNKNOWN_NAME 
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 

Definition at line 148 of file d-exp.c.

Function Documentation

◆ classify_inner_name()

static int classify_inner_name ( struct parser_state * par_state,
const struct block * block,
struct type * context )
static

◆ classify_name()

static int classify_name ( struct parser_state * par_state,
const struct block * block )
static

◆ d_parse()

int d_parse ( struct parser_state * par_state)

◆ lex_one_token()

static int lex_one_token ( struct parser_state * par_state)
static

◆ parse_number()

static int parse_number ( struct parser_state * ps,
const char * p,
int len,
int parsed_float,
d_exp_YYSTYPE * putithere )
static

◆ parse_string_or_char()

static int parse_string_or_char ( const char * tokptr,
const char ** outptr,
struct typed_stoken * value,
int * host_chars )
static

◆ type_aggregate_p()

static int type_aggregate_p ( struct type * type)
static

Definition at line 2329 of file d-exp.c.

References type::code(), and type::is_declared_class().

Referenced by classify_inner_name(), and yyparse().

◆ xfree()

void xfree ( void * )

Referenced by yyparse().

◆ xmalloc()

void * xmalloc ( YYSIZE_T )

Referenced by yyparse().

◆ yy_reduce_print()

static void yy_reduce_print ( yy_state_t * yyssp,
d_exp_YYSTYPE * yyvsp,
int yyrule )
static

Definition at line 1173 of file d-exp.c.

References YY_ACCESSING_SYMBOL, yy_symbol_print(), YYFPRINTF, yyr2, yyrline, yyrule, yyssp, and yyvsp.

◆ yy_stack_print()

static void yy_stack_print ( yy_state_t * yybottom,
yy_state_t * yytop )
static

Definition at line 1150 of file d-exp.c.

References YYFPRINTF.

◆ yy_symbol_print()

static void yy_symbol_print ( FILE * yyo,
d_exp_yysymbol_kind_t yykind,
d_exp_YYSTYPE const *const yyvaluep )
static

Definition at line 1134 of file d-exp.c.

References yy_symbol_value_print(), YYFPRINTF, YYNTOKENS, and yysymbol_name().

Referenced by yy_reduce_print().

◆ yy_symbol_value_print()

static void yy_symbol_value_print ( FILE * yyo,
d_exp_yysymbol_kind_t yykind,
d_exp_YYSTYPE const *const yyvaluep )
static

Definition at line 1116 of file d-exp.c.

References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, and YY_USE.

Referenced by yy_symbol_print().

◆ yydestruct()

static void yydestruct ( const char * yymsg,
d_exp_yysymbol_kind_t yykind,
d_exp_YYSTYPE * yyvaluep )
static

◆ yyerror()

static void yyerror ( const char * msg)
static

Definition at line 3328 of file d-exp.c.

References parser_state::lexptr, parser_state::prev_lexptr, and pstate.

◆ yylex()

static int yylex ( void )
static

◆ yyparse()

int yyparse ( void )

Definition at line 1265 of file d-exp.c.

References symbol::aclass(), parser_state::arglist_len, parser_state::block_tracker, check_typedef(), type::code(), copy_name(), parser_state::end_arglist(), parser_state::expression_context_block, type_stack::follow_types(), have_full_symbols(), have_partial_symbols(), stoken_vector::len, type::length(), typed_stoken::length, LOC_TYPEDEF, lookup_bound_minimal_symbol(), lookup_pointer_type(), lookup_symbol(), parser_state::mark_struct_expression(), bound_minimal_symbol::minsym, name, parse_d_type, parse_number(), parser_state::pop(), parser_state::pop_vector(), pstate, typed_stoken::ptr, type_stack::push(), parser_state::push(), parser_state::push_c_string(), parser_state::push_dollar(), parser_state::push_new(), parser_state::push_symbol(), parser_state::start_arglist(), block_symbol::symbol, symbol_read_needs_frame(), stoken_vector::tokens, tp_array, tp_pointer, d_exp_YYSTYPE::type, type, typed_stoken::type, field_of_this_result::type, type_aggregate_p(), TYPE_SAFE_NAME, d_exp_YYSTYPE::typed_val_int, innermost_block_tracker::update(), d_exp_YYSTYPE::val, VAR_DOMAIN, parser_state::wrap(), parser_state::wrap2(), xfree(), xmalloc(), YY_, YY_ACCESSING_SYMBOL, YY_ASSERT, YY_CAST, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_IGNORE_USELESS_CAST_BEGIN, YY_IGNORE_USELESS_CAST_END, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, YYerror, YYERROR, yyerror, YYFINAL, YYINITDEPTH, YYLAST, yylen, yylex(), yylhs, yylloc, yylval, YYMAXDEPTH, yynerrs, YYNOMEM, YYNSTATES, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, YYPTRDIFF_T, yyr1, yyr2, YYSIZE_T, YYSIZEOF, yyss, d_exp_yyalloc::yyss_alloc, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, YYSYMBOL_YYEMPTY, YYSYMBOL_YYEOF, YYSYMBOL_YYerror, yytable, yytable_value_is_error, YYTRANSLATE, YYUNDEF, yyval, yyvs, d_exp_yyalloc::yyvs_alloc, and yyvsp.

Referenced by d_parse().

◆ yysymbol_name()

static const char * yysymbol_name ( d_exp_yysymbol_kind_t yysymbol)
static

Definition at line 857 of file d-exp.c.

References yytname.

Referenced by yy_symbol_print().

Variable Documentation

◆ ident_tokens

const struct d_token ident_tokens[]
static
Initial value:
=
{
{"is", IDENTITY, OP_NULL},
{"!is", NOTIDENTITY, OP_NULL},
{"cast", CAST_KEYWORD, OP_NULL},
{"const", CONST_KEYWORD, OP_NULL},
{"immutable", IMMUTABLE_KEYWORD, OP_NULL},
{"shared", SHARED_KEYWORD, OP_NULL},
{"super", SUPER_KEYWORD, OP_NULL},
{"null", NULL_KEYWORD, OP_NULL},
{"true", TRUE_KEYWORD, OP_NULL},
{"false", FALSE_KEYWORD, OP_NULL},
{"init", INIT_KEYWORD, OP_NULL},
{"sizeof", SIZEOF_KEYWORD, OP_NULL},
{"typeof", TYPEOF_KEYWORD, OP_NULL},
{"typeid", TYPEID_KEYWORD, OP_NULL},
{"delegate", DELEGATE_KEYWORD, OP_NULL},
{"function", FUNCTION_KEYWORD, OP_NULL},
{"struct", STRUCT_KEYWORD, OP_NULL},
{"union", UNION_KEYWORD, OP_NULL},
{"class", CLASS_KEYWORD, OP_NULL},
{"interface", INTERFACE_KEYWORD, OP_NULL},
{"enum", ENUM_KEYWORD, OP_NULL},
{"template", TEMPLATE_KEYWORD, OP_NULL},
}
#define IMMUTABLE_KEYWORD
Definition d-exp.c:229
#define TYPEID_KEYWORD
Definition d-exp.c:227
#define TYPEOF_KEYWORD
Definition d-exp.c:226
#define INIT_KEYWORD
Definition d-exp.c:228
#define CAST_KEYWORD
Definition d-exp.c:224
#define SIZEOF_KEYWORD
Definition d-exp.c:225
#define INTERFACE_KEYWORD
Definition d-exp.c:235
#define IDENTITY
Definition d-exp.c:251
#define SHARED_KEYWORD
Definition d-exp.c:231
#define ENUM_KEYWORD
Definition d-exp.c:236
#define CLASS_KEYWORD
Definition d-exp.c:234
#define DELEGATE_KEYWORD
Definition d-exp.c:238
#define NULL_KEYWORD
Definition d-exp.c:222
#define UNION_KEYWORD
Definition d-exp.c:233
#define CONST_KEYWORD
Definition d-exp.c:230
#define TEMPLATE_KEYWORD
Definition d-exp.c:237
#define STRUCT_KEYWORD
Definition d-exp.c:232
#define SUPER_KEYWORD
Definition d-exp.c:223
#define FALSE_KEYWORD
Definition d-exp.c:221
#define FUNCTION_KEYWORD
Definition d-exp.c:239
#define NOTIDENTITY
Definition d-exp.c:252
#define TRUE_KEYWORD
Definition d-exp.c:220

Definition at line 2674 of file d-exp.c.

Referenced by lex_one_token().

◆ last_was_structop

int last_was_structop
static

Definition at line 2711 of file d-exp.c.

Referenced by d_parse(), and lex_one_token().

◆ name_obstack

auto_obstack name_obstack
static

Definition at line 3022 of file d-exp.c.

Referenced by d_parse(), and yylex().

◆ paren_depth

int paren_depth
static

Definition at line 2714 of file d-exp.c.

Referenced by d_parse(), and lex_one_token().

◆ popping

int popping
static

Definition at line 3018 of file d-exp.c.

Referenced by d_parse(), and yylex().

◆ pstate

struct parser_state* pstate = NULL
static

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

Referenced by d_parse(), lex_one_token(), yyerror(), yylex(), and yyparse().

◆ saw_name_at_eof

int saw_name_at_eof
static

Definition at line 2707 of file d-exp.c.

Referenced by d_parse(), and lex_one_token().

◆ tempbuf

struct obstack tempbuf
static

Definition at line 2553 of file d-exp.c.

Referenced by parse_string_or_char().

◆ tempbuf_init

int tempbuf_init
static

Definition at line 2554 of file d-exp.c.

Referenced by parse_string_or_char().

◆ token_fifo

std::vector<d_token_and_value> token_fifo
static

Definition at line 3015 of file d-exp.c.

Referenced by d_parse(), and yylex().

◆ tokentab2

const struct d_token tokentab2[]
static
Initial value:
=
{
{"+=", 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, OP_NULL},
{"--", DECREMENT, OP_NULL},
{"&&", ANDAND, OP_NULL},
{"||", OROR, OP_NULL},
{"^^", HATHAT, OP_NULL},
{"<<", LSH, OP_NULL},
{">>", RSH, OP_NULL},
{"==", EQUAL, OP_NULL},
{"!=", NOTEQUAL, OP_NULL},
{"<=", LEQ, OP_NULL},
{">=", GEQ, OP_NULL},
{"..", DOTDOT, OP_NULL},
}
#define LEQ
Definition d-exp.c:246
#define NOTEQUAL
Definition d-exp.c:245
#define EQUAL
Definition d-exp.c:244
#define RSH
Definition d-exp.c:249
#define LSH
Definition d-exp.c:248
#define OROR
Definition d-exp.c:242
#define DOTDOT
Definition d-exp.c:255
#define DECREMENT
Definition d-exp.c:254
#define ASSIGN_MODIFY
Definition d-exp.c:241
#define GEQ
Definition d-exp.c:247
#define HATHAT
Definition d-exp.c:250
#define ANDAND
Definition d-exp.c:243
#define INCREMENT
Definition d-exp.c:253

Definition at line 2649 of file d-exp.c.

Referenced by lex_one_token().

◆ tokentab3

const struct d_token tokentab3[]
static
Initial value:
=
{
{"^^=", ASSIGN_MODIFY, BINOP_EXP},
{"<<=", ASSIGN_MODIFY, BINOP_LSH},
{">>=", ASSIGN_MODIFY, BINOP_RSH},
}

Definition at line 2642 of file d-exp.c.

Referenced by lex_one_token().

◆ type_stack

struct type_stack* type_stack
static

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

◆ yychar

int yychar

Definition at line 1250 of file d-exp.c.

Referenced by yyparse().

◆ yycheck

const yytype_int16 yycheck[]
static
Initial value:
=
{
14, 15, 16, 17, 18, 19, 36, 20, 22, 23,
0, 5, 3, 62, 104, 6, 3, 54, 52, 53,
69, 64, 21, 54, 55, 56, 63, 35, 19, 37,
0, 21, 19, 67, 90, 91, 92, 64, 38, 39,
70, 50, 51, 44, 45, 46, 47, 48, 49, 50,
51, 86, 87, 36, 40, 43, 55, 58, 59, 72,
73, 3, 41, 5, 54, 7, 8, 9, 10, 11,
64, 161, 14, 15, 16, 74, 18, 42, 20, 93,
94, 95, 96, 11, 62, 36, 70, 100, 69, 8,
6, 65, 34, 69, 69, 66, 69, 110, 70, 113,
57, 43, 69, 60, 61, 62, 63, 64, 70, 156,
52, 53, 54, 71, 75, 78, 76, 107, 60, 61,
79, 63, 64, 77, 146, 67, 68, -1, 70, -1,
-1, 100, -1, 146, -1, 3, -1, 5, 152, 7,
8, 9, 10, 11, -1, 158, 14, 15, 16, -1,
18, 103, 20, 80, 81, 82, 83, 84, 85, -1,
-1, 88, 89, -1, -1, -1, 34, -1, -1, -1,
-1, -1, -1, -1, -1, 43, -1, -1, -1, -1,
-1, -1, -1, -1, 52, 53, 54, -1, -1, -1,
-1, -1, 60, 61, -1, 63, 64, -1, -1, 67,
68
}

Definition at line 966 of file d-exp.c.

Referenced by yyparse().

◆ yydebug

int yydebug

Definition at line 1200 of file d-exp.c.

Referenced by d_parse().

◆ yydefact

const yytype_int8 yydefact[]
static
Initial value:
=
{
0, 94, 104, 83, 87, 88, 89, 95, 85, 86,
84, 0, 0, 82, 0, 0, 0, 0, 0, 0,
72, 0, 0, 0, 0, 2, 4, 5, 7, 10,
12, 14, 16, 18, 20, 23, 24, 25, 22, 34,
37, 41, 54, 55, 58, 67, 68, 69, 60, 91,
80, 90, 3, 98, 0, 0, 45, 0, 50, 49,
48, 46, 47, 70, 73, 0, 0, 0, 52, 51,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 65, 66, 0,
0, 74, 96, 0, 100, 0, 99, 0, 0, 0,
0, 93, 79, 97, 6, 9, 8, 0, 13, 15,
17, 19, 21, 26, 27, 30, 32, 31, 33, 35,
36, 28, 29, 38, 39, 40, 42, 43, 44, 59,
62, 61, 64, 77, 70, 0, 72, 53, 81, 101,
0, 0, 0, 92, 71, 57, 0, 63, 0, 76,
0, 102, 97, 56, 11, 0, 75, 103, 78
}

Definition at line 899 of file d-exp.c.

Referenced by yyparse().

◆ yydefgoto

const yytype_uint8 yydefgoto[]
static
Initial value:
=
{
0, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
43, 44, 64, 65, 45, 146, 46, 47, 48, 49,
50, 51, 57, 106, 53
}

Definition at line 930 of file d-exp.c.

Referenced by yyparse().

◆ yylval

d_exp_YYSTYPE yylval

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

Referenced by classify_inner_name(), classify_name(), lex_one_token(), yylex(), and yyparse().

◆ yynerrs

int yynerrs

Definition at line 1255 of file d-exp.c.

Referenced by yyparse().

◆ yypact

const yytype_int16 yypact[]
static
Initial value:
=
{
132, -91, -91, -91, -91, -91, -91, -91, -91, -91,
-91, -43, -27, -91, 132, 132, 132, 132, 132, 132,
132, 132, 132, 132, 30, -91, -91, 17, -8, 0,
14, 21, 35, 12, -91, -91, -91, -91, -1, -34,
-31, -91, -91, -91, 43, -91, -91, -91, -91, -91,
-91, 72, 22, -37, 6, 132, -91, 22, -91, -91,
-91, -91, -91, -91, 49, 16, 19, -49, -91, -91,
-91, 132, 132, 132, 132, 132, 132, 132, 132, 132,
132, 132, 132, 132, 132, 132, 132, 132, 132, 132,
132, 132, 132, 132, 132, 132, 132, -91, -91, 9,
58, -91, -91, 13, -37, 81, -91, 6, 24, 25,
132, -91, -91, 132, -91, -91, -91, 29, 14, 21,
35, 12, -91, -9, -9, -9, -9, -9, -9, -34,
-34, -9, -9, -31, -31, -31, -91, -91, -91, -91,
84, -91, -91, -91, 26, -30, 132, -91, -91, -91,
28, 27, 132, -91, -91, -91, 132, -91, 132, -91,
33, -37, -91, -91, -91, 38, -91, -91, -91
}

Definition at line 875 of file d-exp.c.

Referenced by yyparse().

◆ yypgoto

const yytype_int8 yypgoto[]
static
Initial value:
=
{
-91, -91, 1, 42, -13, -47, -91, 39, 40, 46,
37, 41, -91, -91, -91, 73, -35, -56, -14, -91,
-91, -91, 31, -22, -91, -91, -91, -91, -91, -91,
48, -91, 10, -90, -91
}

Definition at line 921 of file d-exp.c.

Referenced by yyparse().

◆ yyr1

const yytype_int8 yyr1[]
static
Initial value:
=
{
0, 71, 72, 72, 73, 74, 74, 75, 75, 75,
76, 76, 77, 77, 78, 78, 79, 79, 80, 80,
81, 81, 82, 82, 82, 82, 83, 83, 84, 84,
85, 85, 85, 85, 86, 86, 86, 87, 87, 87,
87, 88, 88, 88, 88, 89, 89, 89, 89, 89,
89, 89, 89, 89, 89, 89, 90, 90, 91, 91,
92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
93, 93, 94, 94, 96, 95, 97, 98, 98, 99,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 100, 101, 102, 102, 103, 103, 103,
104, 104, 104, 104, 105
}

Definition at line 1015 of file d-exp.c.

Referenced by yyparse().

◆ yyr2

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

Definition at line 1031 of file d-exp.c.

Referenced by yy_reduce_print(), and yyparse().

◆ yyrline

const yytype_int16 yyrline[]
static
Initial value:
=
{
0, 181, 181, 182, 188, 192, 193, 198, 199, 201,
211, 212, 224, 225, 230, 231, 236, 237, 242, 243,
248, 249, 254, 255, 256, 257, 261, 263, 268, 270,
275, 277, 279, 281, 286, 287, 289, 294, 295, 297,
299, 304, 305, 307, 309, 313, 315, 317, 319, 321,
323, 325, 327, 329, 331, 332, 336, 340, 345, 346,
351, 352, 359, 364, 371, 373, 375, 377, 378, 379,
383, 385, 391, 392, 397, 396, 408, 422, 424, 436,
438, 477, 511, 513, 518, 522, 524, 526, 528, 535,
540, 546, 553, 558, 563, 567, 582, 600, 602, 604,
611, 613, 615, 618, 624
}

Definition at line 804 of file d-exp.c.

Referenced by yy_reduce_print().

◆ yystos

const yytype_int8 yystos[]
static
Initial value:
=
{
0, 3, 5, 7, 8, 9, 10, 11, 14, 15,
16, 18, 20, 34, 43, 52, 53, 54, 60, 61,
63, 64, 67, 68, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 95, 97, 98, 99, 100,
101, 102, 103, 105, 64, 64, 89, 103, 89, 89,
89, 89, 89, 75, 93, 94, 73, 103, 89, 89,
0, 36, 35, 37, 38, 39, 40, 41, 42, 43,
44, 45, 46, 47, 48, 49, 50, 51, 58, 59,
52, 53, 67, 54, 55, 56, 57, 60, 61, 62,
63, 64, 11, 62, 54, 63, 104, 64, 103, 73,
36, 70, 69, 69, 74, 75, 75, 73, 78, 79,
80, 81, 82, 86, 86, 86, 86, 86, 86, 87,
87, 86, 86, 88, 88, 88, 89, 89, 89, 89,
3, 6, 19, 70, 75, 93, 96, 19, 101, 104,
8, 103, 69, 69, 75, 89, 66, 6, 65, 70,
94, 70, 69, 89, 76, 75, 69, 104, 70
}

Definition at line 993 of file d-exp.c.

◆ yytable

const yytype_uint8 yytable[]
static
Initial value:
=
{
56, 58, 59, 60, 61, 62, 110, 63, 68, 69,
52, 2, 140, 103, 149, 141, 1, 104, 90, 91,
113, 54, 66, 93, 94, 95, 105, 72, 142, 73,
70, 67, 147, 92, 133, 134, 135, 55, 74, 75,
159, 86, 87, 80, 81, 82, 83, 84, 85, 86,
87, 129, 130, 71, 76, 79, 109, 88, 89, 115,
116, 1, 77, 2, 108, 3, 4, 5, 6, 7,
107, 167, 8, 9, 10, 117, 11, 78, 12, 136,
137, 138, 139, 102, 103, 110, 111, 144, 112, 150,
157, 158, 13, 152, 153, 156, 162, 154, 161, 155,
96, 14, 166, 97, 98, 99, 100, 101, 168, 164,
15, 16, 17, 114, 118, 121, 119, 151, 18, 19,
122, 20, 21, 120, 160, 22, 23, 0, 143, 0,
0, 145, 0, 63, 0, 1, 0, 2, 163, 3,
4, 5, 6, 7, 0, 165, 8, 9, 10, 0,
11, 148, 12, 123, 124, 125, 126, 127, 128, 0,
0, 131, 132, 0, 0, 0, 13, 0, 0, 0,
0, 0, 0, 0, 0, 14, 0, 0, 0, 0,
0, 0, 0, 0, 15, 16, 17, 0, 0, 0,
0, 0, 18, 19, 0, 20, 21, 0, 0, 22,
23
}

Definition at line 941 of file d-exp.c.

Referenced by yyparse().

◆ yytname

const char* const yytname[]
static
Initial value:
=
{
"\"end of file\"", "error", "\"invalid token\"", "IDENTIFIER",
"UNKNOWN_NAME", "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", "':'", "'~'", "'!'", "')'", "']'", "$accept",
"start", "Expression", "CommaExpression", "AssignExpression",
"ConditionalExpression", "OrOrExpression", "AndAndExpression",
"OrExpression", "XorExpression", "AndExpression", "CmpExpression",
"EqualExpression", "IdentityExpression", "RelExpression",
"ShiftExpression", "AddExpression", "MulExpression", "UnaryExpression",
"CastExpression", "PowExpression", "PostfixExpression", "ArgumentList",
"ArgumentList_opt", "CallExpression", "$@1", "IndexExpression",
"SliceExpression", "PrimaryExpression", "ArrayLiteral", "IdentifierExp",
"StringExp", "TypeExp", "BasicType2", "BasicType", YY_NULLPTRPTR
}
#define YY_NULLPTRPTR
Definition d-exp.c:132

Definition at line 830 of file d-exp.c.

Referenced by yysymbol_name().

◆ yytranslate

const yytype_int8 yytranslate[]
static

Definition at line 767 of file d-exp.c.