dtc-parser.tab.h_shipped 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /* A Bison parser, made by GNU Bison 3.0.2. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. /* As a special exception, you may create a larger work that contains
  15. part or all of the Bison parser skeleton and distribute that work
  16. under terms of your choice, so long as that work isn't itself a
  17. parser generator using the skeleton or a modified version thereof
  18. as a parser skeleton. Alternatively, if you modify or redistribute
  19. the parser skeleton itself, you may (at your option) remove this
  20. special exception, which will cause the skeleton and the resulting
  21. Bison output files to be licensed under the GNU General Public
  22. License without this special exception.
  23. This special exception was added by the Free Software Foundation in
  24. version 2.2 of Bison. */
  25. #ifndef YY_YY_DTC_PARSER_TAB_H_INCLUDED
  26. # define YY_YY_DTC_PARSER_TAB_H_INCLUDED
  27. /* Debug traces. */
  28. #ifndef YYDEBUG
  29. # define YYDEBUG 0
  30. #endif
  31. #if YYDEBUG
  32. extern int yydebug;
  33. #endif
  34. /* Token type. */
  35. #ifndef YYTOKENTYPE
  36. # define YYTOKENTYPE
  37. enum yytokentype
  38. {
  39. DT_V1 = 258,
  40. DT_MEMRESERVE = 259,
  41. DT_LSHIFT = 260,
  42. DT_RSHIFT = 261,
  43. DT_LE = 262,
  44. DT_GE = 263,
  45. DT_EQ = 264,
  46. DT_NE = 265,
  47. DT_AND = 266,
  48. DT_OR = 267,
  49. DT_BITS = 268,
  50. DT_DEL_PROP = 269,
  51. DT_DEL_NODE = 270,
  52. DT_PROPNODENAME = 271,
  53. DT_LITERAL = 272,
  54. DT_CHAR_LITERAL = 273,
  55. DT_BYTE = 274,
  56. DT_STRING = 275,
  57. DT_LABEL = 276,
  58. DT_REF = 277,
  59. DT_INCBIN = 278
  60. };
  61. #endif
  62. /* Value type. */
  63. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  64. typedef union YYSTYPE YYSTYPE;
  65. union YYSTYPE
  66. {
  67. #line 38 "dtc-parser.y" /* yacc.c:1909 */
  68. char *propnodename;
  69. char *labelref;
  70. uint8_t byte;
  71. struct data data;
  72. struct {
  73. struct data data;
  74. int bits;
  75. } array;
  76. struct property *prop;
  77. struct property *proplist;
  78. struct node *node;
  79. struct node *nodelist;
  80. struct reserve_info *re;
  81. uint64_t integer;
  82. #line 97 "dtc-parser.tab.h" /* yacc.c:1909 */
  83. };
  84. # define YYSTYPE_IS_TRIVIAL 1
  85. # define YYSTYPE_IS_DECLARED 1
  86. #endif
  87. /* Location type. */
  88. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  89. typedef struct YYLTYPE YYLTYPE;
  90. struct YYLTYPE
  91. {
  92. int first_line;
  93. int first_column;
  94. int last_line;
  95. int last_column;
  96. };
  97. # define YYLTYPE_IS_DECLARED 1
  98. # define YYLTYPE_IS_TRIVIAL 1
  99. #endif
  100. extern YYSTYPE yylval;
  101. extern YYLTYPE yylloc;
  102. int yyparse (void);
  103. #endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED */