gmlparse.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /* A Bison parser, made by GNU Bison 3.5.1. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 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. /* Undocumented macros, especially those whose name start with YY_,
  27. are private implementation details. Do not rely on them. */
  28. #ifndef YY_GML_GMLPARSE_H_INCLUDED
  29. # define YY_GML_GMLPARSE_H_INCLUDED
  30. /* Debug traces. */
  31. #ifndef GMLDEBUG
  32. # if defined YYDEBUG
  33. #if YYDEBUG
  34. # define GMLDEBUG 1
  35. # else
  36. # define GMLDEBUG 0
  37. # endif
  38. # else /* ! defined YYDEBUG */
  39. # define GMLDEBUG 0
  40. # endif /* ! defined YYDEBUG */
  41. #endif /* ! defined GMLDEBUG */
  42. #if GMLDEBUG
  43. extern int gmldebug;
  44. #endif
  45. /* Token type. */
  46. #ifndef GMLTOKENTYPE
  47. # define GMLTOKENTYPE
  48. enum gmltokentype
  49. {
  50. GRAPH = 258,
  51. NODE = 259,
  52. EDGE = 260,
  53. DIRECTED = 261,
  54. SOURCE = 262,
  55. TARGET = 263,
  56. XVAL = 264,
  57. YVAL = 265,
  58. WVAL = 266,
  59. HVAL = 267,
  60. LABEL = 268,
  61. GRAPHICS = 269,
  62. LABELGRAPHICS = 270,
  63. TYPE = 271,
  64. FILL = 272,
  65. OUTLINE = 273,
  66. OUTLINESTYLE = 274,
  67. OUTLINEWIDTH = 275,
  68. WIDTH = 276,
  69. STYLE = 277,
  70. LINE = 278,
  71. POINT = 279,
  72. TEXT = 280,
  73. FONTSIZE = 281,
  74. FONTNAME = 282,
  75. COLOR = 283,
  76. INTEGER = 284,
  77. REAL = 285,
  78. STRING = 286,
  79. ID = 287,
  80. NAME = 288,
  81. LIST = 289
  82. };
  83. #endif
  84. /* Tokens. */
  85. #define GRAPH 258
  86. #define NODE 259
  87. #define EDGE 260
  88. #define DIRECTED 261
  89. #define SOURCE 262
  90. #define TARGET 263
  91. #define XVAL 264
  92. #define YVAL 265
  93. #define WVAL 266
  94. #define HVAL 267
  95. #define LABEL 268
  96. #define GRAPHICS 269
  97. #define LABELGRAPHICS 270
  98. #define TYPE 271
  99. #define FILL 272
  100. #define OUTLINE 273
  101. #define OUTLINESTYLE 274
  102. #define OUTLINEWIDTH 275
  103. #define WIDTH 276
  104. #define STYLE 277
  105. #define LINE 278
  106. #define POINT 279
  107. #define TEXT 280
  108. #define FONTSIZE 281
  109. #define FONTNAME 282
  110. #define COLOR 283
  111. #define INTEGER 284
  112. #define REAL 285
  113. #define STRING 286
  114. #define ID 287
  115. #define NAME 288
  116. #define LIST 289
  117. /* Value type. */
  118. #if ! defined GMLSTYPE && ! defined GMLSTYPE_IS_DECLARED
  119. union GMLSTYPE
  120. {
  121. #line 237 "../../cmd/tools/gmlparse.y"
  122. int i;
  123. char *str;
  124. gmlnode* np;
  125. gmledge* ep;
  126. gmlattr* ap;
  127. Dt_t* list;
  128. #line 142 "gmlparse.h"
  129. };
  130. typedef union GMLSTYPE GMLSTYPE;
  131. # define GMLSTYPE_IS_TRIVIAL 1
  132. # define GMLSTYPE_IS_DECLARED 1
  133. #endif
  134. extern GMLSTYPE gmllval;
  135. int gmlparse (void);
  136. #endif /* !YY_GML_GMLPARSE_H_INCLUDED */