|
GDB (xrefs)
|
#include "defs.h"#include <ctype.h>#include "expression.h"#include "value.h"#include "parser-defs.h"#include "language.h"#include "c-lang.h"#include "go-lang.h"#include "bfd.h"#include "symfile.h"#include "objfiles.h"#include "charset.h"#include "block.h"#include "yy-remap.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.4" |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYPURE 0 |
| #define | YYPUSH 0 |
| #define | YYPULL 1 |
| #define | parse_type(ps) builtin_type (parse_gdbarch (ps)) |
| #define | GDB_YY_REMAP_PREFIX go_ |
| #define | YY_NULLPTRPTR 0 |
| #define | YYERROR_VERBOSE 0 |
| #define | YYTOKENTYPE |
| #define | INT 258 |
| #define | FLOAT 259 |
| #define | RAW_STRING 260 |
| #define | STRING 261 |
| #define | CHAR 262 |
| #define | NAME 263 |
| #define | TYPENAME 264 |
| #define | COMPLETE 265 |
| #define | NAME_OR_INT 266 |
| #define | TRUE_KEYWORD 267 |
| #define | FALSE_KEYWORD 268 |
| #define | STRUCT_KEYWORD 269 |
| #define | INTERFACE_KEYWORD 270 |
| #define | TYPE_KEYWORD 271 |
| #define | CHAN_KEYWORD 272 |
| #define | SIZEOF_KEYWORD 273 |
| #define | LEN_KEYWORD 274 |
| #define | CAP_KEYWORD 275 |
| #define | NEW_KEYWORD 276 |
| #define | IOTA_KEYWORD 277 |
| #define | NIL_KEYWORD 278 |
| #define | CONST_KEYWORD 279 |
| #define | DOTDOTDOT 280 |
| #define | ENTRY 281 |
| #define | ERROR 282 |
| #define | BYTE_KEYWORD 283 |
| #define | DOLLAR_VARIABLE 284 |
| #define | ASSIGN_MODIFY 285 |
| #define | ABOVE_COMMA 286 |
| #define | OROR 287 |
| #define | ANDAND 288 |
| #define | ANDNOT 289 |
| #define | EQUAL 290 |
| #define | NOTEQUAL 291 |
| #define | LEQ 292 |
| #define | GEQ 293 |
| #define | LSH 294 |
| #define | RSH 295 |
| #define | UNARY 296 |
| #define | INCREMENT 297 |
| #define | DECREMENT 298 |
| #define | LEFT_ARROW 299 |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | YYSTYPE_IS_DECLARED 1 |
| #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 40 |
| #define | YYLAST 451 |
| #define | YYNTOKENS 68 |
| #define | YYNNTS 13 |
| #define | YYNRULES 69 |
| #define | YYNSTATES 122 |
| #define | YYUNDEFTOK 2 |
| #define | YYMAXUTOK 299 |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYPACT_NINF -42 |
| #define | yypact_value_is_default(Yystate) (!!((Yystate) == (-42))) |
| #define | YYTABLE_NINF -1 |
| #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, STRING = 260, NSSTRING = 261, SELECTOR = 262, CHAR = 263, NAME = 264, UNKNOWN_CPP_NAME = 265, COMPLETE = 266, TYPENAME = 267, CLASSNAME = 268, OBJC_LBRAC = 269, NAME_OR_INT = 270, OPERATOR = 271, STRUCT = 272, CLASS = 273, UNION = 274, ENUM = 275, SIZEOF = 276, UNSIGNED = 277, COLONCOLON = 278, TEMPLATE = 279, ERROR = 280, NEW = 281, DELETE = 282, REINTERPRET_CAST = 283, DYNAMIC_CAST = 284, STATIC_CAST = 285, CONST_CAST = 286, ENTRY = 287, TYPEOF = 288, DECLTYPE = 289, TYPEID = 290, SIGNED_KEYWORD = 291, LONG = 292, SHORT = 293, INT_KEYWORD = 294, CONST_KEYWORD = 295, VOLATILE_KEYWORD = 296, DOUBLE_KEYWORD = 297, VARIABLE = 298, ASSIGN_MODIFY = 299, TRUEKEYWORD = 300, FALSEKEYWORD = 301, ABOVE_COMMA = 302, OROR = 303, ANDAND = 304, EQUAL = 305, NOTEQUAL = 306, LEQ = 307, GEQ = 308, LSH = 309, RSH = 310, UNARY = 311, INCREMENT = 312, DECREMENT = 313, ARROW = 314, ARROW_STAR = 315, DOT_STAR = 316, BLOCKNAME = 317, FILENAME = 318, DOTDOTDOT = 319, 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, 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, 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, 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, GDBVAR = 258, IDENT = 259, COMPLETE = 260, INTEGER = 261, DECIMAL_INTEGER = 262, STRING = 263, BYTESTRING = 264, FLOAT = 265, COMPOUND_ASSIGN = 266, KW_AS = 267, KW_IF = 268, KW_TRUE = 269, KW_FALSE = 270, KW_SUPER = 271, KW_SELF = 272, KW_MUT = 273, KW_EXTERN = 274, KW_CONST = 275, KW_FN = 276, KW_SIZEOF = 277, DOTDOT = 278, OROR = 279, ANDAND = 280, EQEQ = 281, NOTEQ = 282, LTEQ = 283, GTEQ = 284, LSH = 285, RSH = 286, COLONCOLON = 287, ARROW = 288, UNARY = 289 } |
Functions | |
| int | yyparse (void) |
| static int | yylex (void) |
| void | yyerror (const char *) |
| static int | parse_number (struct parser_state *, const char *, int, int, YYSTYPE *) |
| 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) |
| 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) |
| DEF_VEC_O (token_and_value) | |
| static | VEC (token_and_value) |
| static int | package_name_p (const char *name, const struct block *block) |
| static int | classify_unsafe_function (struct stoken function_name) |
| static int | classify_packaged_name (const struct block *block) |
| static int | classify_name (struct parser_state *par_state, const struct block *block) |
| int | go_parse (struct parser_state *par_state) |
Variables | |
| static struct parser_state * | pstate = NULL |
| int | yydebug |
| YYSTYPE | yylval |
| static const yytype_uint8 | yytranslate [] |
| static const yytype_uint16 | yyrline [] |
| static const char *const | yytname [] |
| static const yytype_int16 | yypact [] |
| static const yytype_uint8 | yydefact [] |
| static const yytype_int8 | yypgoto [] |
| static const yytype_int8 | yydefgoto [] |
| static const yytype_uint8 | yytable [] |
| static const yytype_int8 | 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 int | saw_name_at_eof |
| static int | last_was_structop |
| #define CHAR 262 |
Definition at line 182 of file go-exp.c.
Referenced by lex_one_token(), and parse_string_or_char().
| #define COMPLETE 265 |
Definition at line 185 of file go-exp.c.
Referenced by lex_one_token().
| #define DOLLAR_VARIABLE 284 |
Definition at line 204 of file go-exp.c.
Referenced by lex_one_token().
| #define ENTRY 281 |
Definition at line 201 of file go-exp.c.
Referenced by lex_one_token().
| #define ERROR 282 |
Definition at line 202 of file go-exp.c.
Referenced by lex_one_token(), and parse_number().
| #define FLOAT 259 |
Definition at line 179 of file go-exp.c.
Referenced by parse_number().
| #define INT 258 |
Definition at line 178 of file go-exp.c.
Referenced by classify_name(), and parse_number().
| #define NAME 263 |
Definition at line 183 of file go-exp.c.
Referenced by classify_name(), classify_packaged_name(), lex_one_token(), and yylex().
| #define NAME_OR_INT 266 |
Definition at line 186 of file go-exp.c.
Referenced by classify_name().
| #define parse_type | ( | ps | ) | builtin_type (parse_gdbarch (ps)) |
Definition at line 82 of file go-exp.c.
Referenced by parse_number(), and yyparse().
| #define SIZEOF_KEYWORD 273 |
Definition at line 193 of file go-exp.c.
Referenced by classify_unsafe_function().
| #define STRING 261 |
Definition at line 181 of file go-exp.c.
Referenced by parse_string_or_char().
| #define TYPENAME 264 |
Definition at line 184 of file go-exp.c.
Referenced by classify_name().
| #define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| #define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 373 of file go-exp.c.
Referenced by yydestruct(), and yyparse().
| #define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 374 of file go-exp.c.
Referenced by yydestruct(), and yyparse().
| #define YY_REDUCE_PRINT | ( | Rule | ) |
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Type, | |||
| Value, | |||
| Location | |||
| ) |
Definition at line 881 of file go-exp.c.
Referenced by yydestruct(), and yyparse().
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
| #define YYCOPY | ( | Dst, | |
| Src, | |||
| Count | |||
| ) |
| #define YYDPRINTF | ( | Args | ) |
| #define YYNTOKENS 68 |
Definition at line 514 of file go-exp.c.
Referenced by yy_symbol_print(), yy_symbol_value_print(), and yyparse().
| #define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-42))) |
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
| #define yytable_value_is_error | ( | Yytable_value | ) | 0 |
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define YYUSE | ( | E | ) | ((void) (E)) |
Definition at line 356 of file go-exp.c.
Referenced by yy_symbol_value_print(), and yydestruct().
| typedef short int yytype_int16 |
| typedef signed char yytype_int8 |
| typedef unsigned short int yytype_uint16 |
| typedef unsigned char yytype_uint8 |
| enum yytokentype |
|
static |
Definition at line 3017 of file go-exp.c.
References block_symbol::block, copy_name(), go_block_package_name(), input_radix, INT, symtoken::is_a_field_of_this, language_lookup_primitive_type(), stoken::length, lookup_symbol(), NAME, NAME_OR_INT, parse_gdbarch, parse_language, parse_number(), stoken::ptr, YYSTYPE::ssym, symtoken::stoken, YYSTYPE::sval, symtoken::sym, block_symbol::symbol, YYSTYPE::tsym, type, ttype::type, field_of_this_result::type, TYPENAME, VAR_DOMAIN, xfree(), and yylval.
Referenced by classify_inner_name(), and yylex().
|
static |
Definition at line 2989 of file go-exp.c.
References copy_name(), symtoken::is_a_field_of_this, lookup_symbol(), NAME, YYSTYPE::ssym, YYSTYPE::sval, symtoken::sym, block_symbol::symbol, field_of_this_result::type, VAR_DOMAIN, and yylval.
Referenced by yylex().
|
static |
Definition at line 2969 of file go-exp.c.
References _, copy_name(), error(), SIZEOF_KEYWORD, YYSTYPE::sval, and yylval.
Referenced by yylex().
| DEF_VEC_O | ( | token_and_value | ) |
| int go_parse | ( | struct parser_state * | par_state | ) |
Definition at line 3182 of file go-exp.c.
References auto_obstack::clear(), gdb_assert, last_was_structop, make_scoped_restore(), parser_debug, pstate, saw_name_at_eof, VEC_free, yydebug, and yyparse().
|
static |
Definition at line 2629 of file go-exp.c.
References _, CHAR, comma_terminates, COMPLETE, copy_name(), DOLLAR_VARIABLE, ENTRY, error(), ERROR, ident_tokens, input_radix, last_was_structop, stoken::length, lexptr, NAME, YYSTYPE::opcode, token::opcode, token::oper, paren_depth, parse_completion, parse_number(), parse_string_or_char(), prev_lexptr, stoken::ptr, saw_name_at_eof, YYSTYPE::sval, symbol, token::token, tokentab2, tokentab3, YYSTYPE::tsval, and yylval.
Referenced by yylex().
|
static |
Definition at line 2949 of file go-exp.c.
References LOC_TYPEDEF, lookup_symbol(), name, STRUCT_DOMAIN, block_symbol::symbol, SYMBOL_CLASS, SYMBOL_TYPE, TYPE_CODE, and TYPE_CODE_MODULE.
Referenced by yylex().
|
static |
Definition at line 2262 of file go-exp.c.
References _, builtin_go_type::builtin_float32, builtin_go_type::builtin_float64, builtin_go_type(), error(), ERROR, FLOAT, gdbarch_int_bit(), gdbarch_long_bit(), gdbarch_long_long_bit(), HOST_CHAR_BIT, input_radix, INT, parse_float(), parse_gdbarch, parse_type, YYSTYPE::type, YYSTYPE::typed_val_float, YYSTYPE::typed_val_int, and YYSTYPE::val.
Referenced by classify_name(), lex_one_token(), and yyparse().
|
static |
Definition at line 2493 of file go-exp.c.
References _, C_CHAR, c_parse_escape(), C_STRING, CHAR, error(), STRING, tempbuf, tempbuf_init, and value::type.
Referenced by lex_one_token().
|
static |
Definition at line 2914 of file go-exp.c.
References auto_obstack::clear(), stoken::length, name, obstack_grow_str, and stoken::ptr.
| void xfree | ( | void * | ) |
Referenced by classify_name(), and yyparse().
|
static |
|
static |
|
static |
Definition at line 917 of file go-exp.c.
References yy_symbol_value_print(), YYFPRINTF, YYNTOKENS, and yytname.
Referenced by yy_reduce_print().
|
static |
|
static |
Definition at line 1235 of file go-exp.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyparse().
| void yyerror | ( | const char * | msg | ) |
|
static |
Definition at line 3106 of file go-exp.c.
References classify_name(), classify_packaged_name(), classify_unsafe_function(), copy_name(), expression_context_block, stoken::length, lex_one_token(), NAME, package_name_p(), pstate, stoken::ptr, YYSTYPE::sval, token_and_value::token, token_and_value::value, VEC_empty, VEC_index, VEC_ordered_remove, VEC_safe_push, and yylval.
Referenced by yyparse().
| int yyparse | ( | void | ) |
Definition at line 1264 of file go-exp.c.
References _, arglist_len, block_symbol::block, check_typedef(), contained_in(), copy_name(), end_arglist(), error(), gdb_assert_not_reached, have_full_symbols(), have_partial_symbols(), if(), innermost_block, stoken_vector::len, stoken::length, typed_stoken::length, type::length, lookup_bound_minimal_symbol(), lookup_pointer_type(), mark_struct_expression(), bound_minimal_symbol::minsym, parse_gdbarch, parse_number(), parse_type, pstate, stoken::ptr, typed_stoken::ptr, start_arglist(), block_symbol::symbol, SYMBOL_IS_ARGUMENT, symbol_read_needs_frame(), stoken_vector::tokens, typed_stoken::type, YYSTYPE::type, TYPE_LENGTH, YYSTYPE::typed_val_int, YYSTYPE::val, write_dollar_variable(), write_exp_elt_block(), write_exp_elt_floatcst(), 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(), XNEW, XRESIZEVEC, YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror(), YYFINAL, YYINITDEPTH, YYLAST, yylen, yylex(), yylloc, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, yyr1, yyr2, YYSIZE_T, yyss, yyalloc::yyss_alloc, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, yystos, yytable, yytable_value_is_error, YYTERROR, YYTRANSLATE, yyval, yyvs, yyalloc::yyvs_alloc, and yyvsp.
Referenced by go_parse().
|
static |
Definition at line 2599 of file go-exp.c.
Referenced by lex_one_token().
|
static |
Definition at line 2624 of file go-exp.c.
Referenced by go_parse(), and lex_one_token().
|
static |
Definition at line 92 of file go-exp.c.
Referenced by go_parse(), yylex(), and yyparse().
|
static |
Definition at line 2619 of file go-exp.c.
Referenced by go_parse(), and lex_one_token().
|
static |
Definition at line 2482 of file go-exp.c.
Referenced by parse_string_or_char().
|
static |
Definition at line 2483 of file go-exp.c.
Referenced by parse_string_or_char().
|
static |
Definition at line 2573 of file go-exp.c.
Referenced by lex_one_token().
|
static |
Definition at line 2565 of file go-exp.c.
Referenced by lex_one_token().
|
static |
| int yydebug |
Definition at line 982 of file go-exp.c.
Referenced by go_parse().
|
static |
Definition at line 648 of file go-exp.c.
Referenced by yyparse().
|
static |
| YYSTYPE yylval |
Definition at line 1254 of file go-exp.c.
Referenced by classify_name(), classify_packaged_name(), classify_unsafe_function(), lex_one_token(), yylex(), and yyparse().
|
static |
Definition at line 628 of file go-exp.c.
Referenced by yyparse().
|
static |
|
static |
Definition at line 802 of file go-exp.c.
Referenced by yyparse().
|
static |
Definition at line 814 of file go-exp.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
Definition at line 568 of file go-exp.c.
Referenced by yy_reduce_print().
|
static |
Definition at line 784 of file go-exp.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
|
static |
Definition at line 583 of file go-exp.c.
Referenced by yy_symbol_print().
|
static |
1.8.14