dtc-parser.tab.h_shipped 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /* A Bison parser, made by GNU Bison 3.0.4. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015 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_PLUGIN = 259,
  41. DT_MEMRESERVE = 260,
  42. DT_LSHIFT = 261,
  43. DT_RSHIFT = 262,
  44. DT_LE = 263,
  45. DT_GE = 264,
  46. DT_EQ = 265,
  47. DT_NE = 266,
  48. DT_AND = 267,
  49. DT_OR = 268,
  50. DT_BITS = 269,
  51. DT_DEL_PROP = 270,
  52. DT_DEL_NODE = 271,
  53. DT_PROPNODENAME = 272,
  54. DT_LITERAL = 273,
  55. DT_CHAR_LITERAL = 274,
  56. DT_BYTE = 275,
  57. DT_STRING = 276,
  58. DT_LABEL = 277,
  59. DT_REF = 278,
  60. DT_INCBIN = 279
  61. };
  62. #endif
  63. /* Value type. */
  64. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  65. union YYSTYPE
  66. {
  67. #line 39 "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. unsigned int flags;
  83. #line 99 "dtc-parser.tab.h" /* yacc.c:1909 */
  84. };
  85. typedef union YYSTYPE YYSTYPE;
  86. # define YYSTYPE_IS_TRIVIAL 1
  87. # define YYSTYPE_IS_DECLARED 1
  88. #endif
  89. /* Location type. */
  90. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  91. typedef struct YYLTYPE YYLTYPE;
  92. struct YYLTYPE
  93. {
  94. int first_line;
  95. int first_column;
  96. int last_line;
  97. int last_column;
  98. };
  99. # define YYLTYPE_IS_DECLARED 1
  100. # define YYLTYPE_IS_TRIVIAL 1
  101. #endif
  102. extern YYSTYPE yylval;
  103. extern YYLTYPE yylloc;
  104. int yyparse (void);
  105. #endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED */