Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb remove generated file



details:   https://anonhg.NetBSD.org/src/rev/918b5735f946
branches:  trunk
changeset: 322618:918b5735f946
user:      christos <christos%NetBSD.org@localhost>
date:      Wed May 09 13:52:55 2018 +0000

description:
remove generated file

diffstat:

 external/gpl3/gdb/dist/gdb/rust-exp.c |  4667 ---------------------------------
 1 files changed, 0 insertions(+), 4667 deletions(-)

diffs (truncated from 4671 to 300 lines):

diff -r 553f003f19d8 -r 918b5735f946 external/gpl3/gdb/dist/gdb/rust-exp.c
--- a/external/gpl3/gdb/dist/gdb/rust-exp.c     Wed May 09 13:21:27 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4667 +0,0 @@
-/* A Bison parser, made by GNU Bison 3.0.4.  */
-
-/* Bison implementation for Yacc-like parsers in C
-
-   Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
-
-/* As a special exception, you may create a larger work that contains
-   part or all of the Bison parser skeleton and distribute that work
-   under terms of your choice, so long as that work isn't itself a
-   parser generator using the skeleton or a modified version thereof
-   as a parser skeleton.  Alternatively, if you modify or redistribute
-   the parser skeleton itself, you may (at your option) remove this
-   special exception, which will cause the skeleton and the resulting
-   Bison output files to be licensed under the GNU General Public
-   License without this special exception.
-
-   This special exception was added by the Free Software Foundation in
-   version 2.2 of Bison.  */
-
-/* C LALR(1) parser skeleton written by Richard Stallman, by
-   simplifying the original so-called "semantic" parser.  */
-
-/* All symbols defined below should begin with yy or YY, to avoid
-   infringing on user name space.  This should be done even for local
-   variables, as they might otherwise be expanded by user macros.
-   There are some unavoidable exceptions within include files to
-   define necessary library symbols; they are noted "INFRINGES ON
-   USER NAME SPACE" below.  */
-
-/* Identify Bison output.  */
-#define YYBISON 1
-
-/* Bison version.  */
-#define YYBISON_VERSION "3.0.4"
-
-/* Skeleton name.  */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers.  */
-#define YYPURE 0
-
-/* Push parsers.  */
-#define YYPUSH 0
-
-/* Pull parsers.  */
-#define YYPULL 1
-
-
-
-
-/* Copy the first part of user declarations.  */
-#line 22 "rust-exp.y" /* yacc.c:339  */
-
-
-#include "defs.h"
-
-#include "block.h"
-#include "charset.h"
-#include "cp-support.h"
-#include "gdb_obstack.h"
-#include "gdb_regex.h"
-#include "rust-lang.h"
-#include "parser-defs.h"
-#include "selftest.h"
-#include "value.h"
-#include "vec.h"
-
-#define GDB_YY_REMAP_PREFIX rust
-#include "yy-remap.h"
-
-#define RUSTSTYPE YYSTYPE
-
-extern initialize_file_ftype _initialize_rust_exp;
-
-struct rust_op;
-typedef const struct rust_op *rust_op_ptr;
-DEF_VEC_P (rust_op_ptr);
-
-/* A typed integer constant.  */
-
-struct typed_val_int
-{
-  LONGEST val;
-  struct type *type;
-};
-
-/* A typed floating point constant.  */
-
-struct typed_val_float
-{
-  DOUBLEST dval;
-  struct type *type;
-};
-
-/* An identifier and an expression.  This is used to represent one
-   element of a struct initializer.  */
-
-struct set_field
-{
-  struct stoken name;
-  const struct rust_op *init;
-};
-
-typedef struct set_field set_field;
-
-DEF_VEC_O (set_field);
-
-
-static int rustyylex (void);
-static void rust_push_back (char c);
-static const char *rust_copy_name (const char *, int);
-static struct stoken rust_concat3 (const char *, const char *, const char *);
-static struct stoken make_stoken (const char *);
-static struct block_symbol rust_lookup_symbol (const char *name,
-                                              const struct block *block,
-                                              const domain_enum domain);
-static struct type *rust_lookup_type (const char *name,
-                                     const struct block *block);
-static struct type *rust_type (const char *name);
-
-static const struct rust_op *crate_name (const struct rust_op *name);
-static const struct rust_op *super_name (const struct rust_op *name,
-                                        unsigned int n_supers);
-
-static const struct rust_op *ast_operation (enum exp_opcode opcode,
-                                           const struct rust_op *left,
-                                           const struct rust_op *right);
-static const struct rust_op *ast_compound_assignment
-  (enum exp_opcode opcode, const struct rust_op *left,
-   const struct rust_op *rust_op);
-static const struct rust_op *ast_literal (struct typed_val_int val);
-static const struct rust_op *ast_dliteral (struct typed_val_float val);
-static const struct rust_op *ast_structop (const struct rust_op *left,
-                                          const char *name,
-                                          int completing);
-static const struct rust_op *ast_structop_anonymous
-  (const struct rust_op *left, struct typed_val_int number);
-static const struct rust_op *ast_unary (enum exp_opcode opcode,
-                                       const struct rust_op *expr);
-static const struct rust_op *ast_cast (const struct rust_op *expr,
-                                      const struct rust_op *type);
-static const struct rust_op *ast_call_ish (enum exp_opcode opcode,
-                                          const struct rust_op *expr,
-                                          VEC (rust_op_ptr) **params);
-static const struct rust_op *ast_path (struct stoken name,
-                                      VEC (rust_op_ptr) **params);
-static const struct rust_op *ast_string (struct stoken str);
-static const struct rust_op *ast_struct (const struct rust_op *name,
-                                        VEC (set_field) **fields);
-static const struct rust_op *ast_range (const struct rust_op *lhs,
-                                       const struct rust_op *rhs);
-static const struct rust_op *ast_array_type (const struct rust_op *lhs,
-                                            struct typed_val_int val);
-static const struct rust_op *ast_slice_type (const struct rust_op *type);
-static const struct rust_op *ast_reference_type (const struct rust_op *type);
-static const struct rust_op *ast_pointer_type (const struct rust_op *type,
-                                              int is_mut);
-static const struct rust_op *ast_function_type (const struct rust_op *result,
-                                               VEC (rust_op_ptr) **params);
-static const struct rust_op *ast_tuple_type (VEC (rust_op_ptr) **params);
-
-/* The state of the parser, used internally when we are parsing the
-   expression.  */
-
-static struct parser_state *pstate = NULL;
-
-/* A regular expression for matching Rust numbers.  This is split up
-   since it is very long and this gives us a way to comment the
-   sections.  */
-
-static const char *number_regex_text =
-  /* subexpression 1: allows use of alternation, otherwise uninteresting */
-  "^("
-  /* First comes floating point.  */
-  /* Recognize number after the decimal point, with optional
-     exponent and optional type suffix.
-     subexpression 2: allows "?", otherwise uninteresting
-     subexpression 3: if present, type suffix
-  */
-  "[0-9][0-9_]*\\.[0-9][0-9_]*([eE][-+]?[0-9][0-9_]*)?(f32|f64)?"
-#define FLOAT_TYPE1 3
-  "|"
-  /* Recognize exponent without decimal point, with optional type
-     suffix.
-     subexpression 4: if present, type suffix
-  */
-#define FLOAT_TYPE2 4
-  "[0-9][0-9_]*[eE][-+]?[0-9][0-9_]*(f32|f64)?"
-  "|"
-  /* "23." is a valid floating point number, but "23.e5" and
-     "23.f32" are not.  So, handle the trailing-. case
-     separately.  */
-  "[0-9][0-9_]*\\."
-  "|"
-  /* Finally come integers.
-     subexpression 5: text of integer
-     subexpression 6: if present, type suffix
-     subexpression 7: allows use of alternation, otherwise uninteresting
-  */
-#define INT_TEXT 5
-#define INT_TYPE 6
-  "(0x[a-fA-F0-9_]+|0o[0-7_]+|0b[01_]+|[0-9][0-9_]*)"
-  "([iu](size|8|16|32|64))?"
-  ")";
-/* The number of subexpressions to allocate space for, including the
-   "0th" whole match subexpression.  */
-#define NUM_SUBEXPRESSIONS 8
-
-/* The compiled number-matching regex.  */
-
-static regex_t number_regex;
-
-/* True if we're running unit tests.  */
-
-static int unit_testing;
-
-/* Obstack for data temporarily allocated during parsing.  */
-
-static struct obstack work_obstack;
-
-/* Result of parsing.  Points into work_obstack.  */
-
-static const struct rust_op *rust_ast;
-
-
-#line 240 "rust-exp.c" /* yacc.c:339  */
-
-# ifndef YY_NULLPTRPTR
-#  if defined __cplusplus && 201103L <= __cplusplus
-#   define YY_NULLPTRPTR nullptr
-#  else
-#   define YY_NULLPTRPTR 0
-#  endif
-# endif
-
-/* Enabling verbose error messages.  */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 0
-#endif
-
-
-/* Debug traces.  */
-#ifndef YYDEBUG
-# define YYDEBUG 0
-#endif
-#if YYDEBUG
-extern int yydebug;
-#endif
-
-/* Token type.  */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
-  enum yytokentype
-  {
-    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,



Home | Main Index | Thread Index | Old Index