dphlparser.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /* A Bison parser, made by GNU Bison 3.7.5. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
  4. 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 3 of the License, or
  8. (at your option) 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, see <http://www.gnu.org/licenses/>. */
  15. /* As a special exception, you may create a larger work that contains
  16. part or all of the Bison parser skeleton and distribute that work
  17. under terms of your choice, so long as that work isn't itself a
  18. parser generator using the skeleton or a modified version thereof
  19. as a parser skeleton. Alternatively, if you modify or redistribute
  20. the parser skeleton itself, you may (at your option) remove this
  21. special exception, which will cause the skeleton and the resulting
  22. Bison output files to be licensed under the GNU General Public
  23. License without this special exception.
  24. This special exception was added by the Free Software Foundation in
  25. version 2.2 of Bison. */
  26. /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
  27. especially those whose name start with YY_ or yy_. They are
  28. private implementation details that can be changed or removed. */
  29. #ifndef YY_HLY_DPHLPARSER_H_INCLUDED
  30. # define YY_HLY_DPHLPARSER_H_INCLUDED
  31. /* Debug traces. */
  32. #ifndef HLYDEBUG
  33. # if defined YYDEBUG
  34. #if YYDEBUG
  35. # define HLYDEBUG 1
  36. # else
  37. # define HLYDEBUG 0
  38. # endif
  39. # else /* ! defined YYDEBUG */
  40. # define HLYDEBUG 1
  41. # endif /* ! defined YYDEBUG */
  42. #endif /* ! defined HLYDEBUG */
  43. #if HLYDEBUG
  44. extern int hlydebug;
  45. #endif
  46. /* Token kinds. */
  47. #ifndef HLYTOKENTYPE
  48. # define HLYTOKENTYPE
  49. enum hlytokentype
  50. {
  51. HLYEMPTY = -2,
  52. HLYEOF = 0, /* "end of file" */
  53. HLYerror = 256, /* error */
  54. HLYUNDEF = 257, /* "invalid token" */
  55. HL_DATA = 258, /* "stringdata" */
  56. HL_HTML = 259, /* "<html" */
  57. HL_C_HTML = 260, /* "</html" */
  58. HL_B = 261, /* "<b" */
  59. HL_C_B = 262, /* "</b" */
  60. HL_BR = 263, /* "<br" */
  61. HL_C_BR = 264, /* "</br" */
  62. HL_FONT = 265, /* "<font" */
  63. HL_C_FONT = 266, /* "</font" */
  64. HL_HR = 267, /* "<hr" */
  65. HL_C_HR = 268, /* "</hr" */
  66. HL_I = 269, /* "<i" */
  67. HL_C_I = 270, /* "</i" */
  68. HL_IMG = 271, /* "<img" */
  69. HL_C_IMG = 272, /* "</img" */
  70. HL_O = 273, /* "<o" */
  71. HL_C_O = 274, /* "</o" */
  72. HL_S = 275, /* "<s" */
  73. HL_C_S = 276, /* "</s" */
  74. HL_SUB = 277, /* "<sub" */
  75. HL_C_SUB = 278, /* "</sub" */
  76. HL_SUP = 279, /* "<sup" */
  77. HL_C_SUP = 280, /* "</sup" */
  78. HL_TABLE = 281, /* "<table" */
  79. HL_C_TABLE = 282, /* "</table" */
  80. HL_TD = 283, /* "<td" */
  81. HL_C_TD = 284, /* "</td" */
  82. HL_TR = 285, /* "<tr" */
  83. HL_C_TR = 286, /* "</tr" */
  84. HL_U = 287, /* "<u" */
  85. HL_C_U = 288, /* "</u" */
  86. HL_VR = 289, /* "<vr" */
  87. HL_C_VR = 290, /* "</vr" */
  88. HL_SC = 291, /* "/>" */
  89. HL_C = 292, /* ">" */
  90. HL_IS = 293, /* "=" */
  91. HL_QSTR = 294, /* "string" */
  92. HL_STR = 295, /* "text" */
  93. HL_ALIGN = 296, /* "align" */
  94. HL_BALIGN = 297, /* "balign" */
  95. HL_BGCOLOR = 298, /* "bgcolor" */
  96. HL_BORDER = 299, /* "border" */
  97. HL_CELLBORDER = 300, /* "cellborder" */
  98. HL_CELLPADDING = 301, /* "cellpadding" */
  99. HL_CELLSPACING = 302, /* "cellspacing" */
  100. HL_COLOR = 303, /* "color" */
  101. HL_COLUMNS = 304, /* "columns" */
  102. HL_COLSPAN = 305, /* "colspan" */
  103. HL_FACE = 306, /* "face" */
  104. HL_FIXEDSIZE = 307, /* "fixedsize" */
  105. HL_GRADIENTANGLE = 308, /* "gradientangle" */
  106. HL_HEIGHT = 309, /* "height" */
  107. HL_HREF = 310, /* "href" */
  108. HL_ID = 311, /* "id" */
  109. HL_PORT = 312, /* "port" */
  110. HL_POINTSIZE = 313, /* "point-size" */
  111. HL_ROWS = 314, /* "rows" */
  112. HL_ROWSPAN = 315, /* "rowspan" */
  113. HL_SCALE = 316, /* "scale" */
  114. HL_SIDES = 317, /* "sides" */
  115. HL_SRC = 318, /* "src" */
  116. HL_STYLE = 319, /* "style" */
  117. HL_TARGET = 320, /* "target" */
  118. HL_TITLE = 321, /* "title" */
  119. HL_TOOLTIP = 322, /* "tooltip" */
  120. HL_VALIGN = 323, /* "valign" */
  121. HL_WIDTH = 324 /* "width" */
  122. };
  123. typedef enum hlytokentype hlytoken_kind_t;
  124. #endif
  125. /* Value type. */
  126. #if ! defined HLYSTYPE && ! defined HLYSTYPE_IS_DECLARED
  127. union HLYSTYPE
  128. {
  129. #line 191 "dphl.y"
  130. char *string;
  131. #line 144 "dphlparser.h"
  132. };
  133. typedef union HLYSTYPE HLYSTYPE;
  134. # define HLYSTYPE_IS_TRIVIAL 1
  135. # define HLYSTYPE_IS_DECLARED 1
  136. #endif
  137. extern HLYSTYPE hlylval;
  138. int hlyparse (void);
  139. #endif /* !YY_HLY_DPHLPARSER_H_INCLUDED */