dtc-parser.tab.h_shipped 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* A Bison parser, made by GNU Bison 2.3. */
  2. /* Skeleton interface for Bison's Yacc-like parsers in C
  3. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  4. Free Software Foundation, Inc.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. Boston, MA 02110-1301, USA. */
  17. /* As a special exception, you may create a larger work that contains
  18. part or all of the Bison parser skeleton and distribute that work
  19. under terms of your choice, so long as that work isn't itself a
  20. parser generator using the skeleton or a modified version thereof
  21. as a parser skeleton. Alternatively, if you modify or redistribute
  22. the parser skeleton itself, you may (at your option) remove this
  23. special exception, which will cause the skeleton and the resulting
  24. Bison output files to be licensed under the GNU General Public
  25. License without this special exception.
  26. This special exception was added by the Free Software Foundation in
  27. version 2.2 of Bison. */
  28. /* Tokens. */
  29. #ifndef YYTOKENTYPE
  30. # define YYTOKENTYPE
  31. /* Put the tokens into the symbol table, so that GDB and other debuggers
  32. know about them. */
  33. enum yytokentype {
  34. DT_V1 = 258,
  35. DT_MEMRESERVE = 259,
  36. DT_PROPNODENAME = 260,
  37. DT_LITERAL = 261,
  38. DT_LEGACYLITERAL = 262,
  39. DT_BASE = 263,
  40. DT_BYTE = 264,
  41. DT_STRING = 265,
  42. DT_LABEL = 266,
  43. DT_REF = 267,
  44. DT_INCBIN = 268
  45. };
  46. #endif
  47. /* Tokens. */
  48. #define DT_V1 258
  49. #define DT_MEMRESERVE 259
  50. #define DT_PROPNODENAME 260
  51. #define DT_LITERAL 261
  52. #define DT_LEGACYLITERAL 262
  53. #define DT_BASE 263
  54. #define DT_BYTE 264
  55. #define DT_STRING 265
  56. #define DT_LABEL 266
  57. #define DT_REF 267
  58. #define DT_INCBIN 268
  59. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  60. typedef union YYSTYPE
  61. #line 37 "dtc-parser.y"
  62. {
  63. char *propnodename;
  64. char *literal;
  65. char *labelref;
  66. unsigned int cbase;
  67. uint8_t byte;
  68. struct data data;
  69. uint64_t addr;
  70. cell_t cell;
  71. struct property *prop;
  72. struct property *proplist;
  73. struct node *node;
  74. struct node *nodelist;
  75. struct reserve_info *re;
  76. }
  77. /* Line 1489 of yacc.c. */
  78. #line 92 "dtc-parser.tab.h"
  79. YYSTYPE;
  80. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  81. # define YYSTYPE_IS_DECLARED 1
  82. # define YYSTYPE_IS_TRIVIAL 1
  83. #endif
  84. extern YYSTYPE yylval;
  85. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  86. typedef struct YYLTYPE
  87. {
  88. int first_line;
  89. int first_column;
  90. int last_line;
  91. int last_column;
  92. } YYLTYPE;
  93. # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
  94. # define YYLTYPE_IS_DECLARED 1
  95. # define YYLTYPE_IS_TRIVIAL 1
  96. #endif
  97. extern YYLTYPE yylloc;