grammar.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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_AAG_GRAMMAR_H_INCLUDED
  29. # define YY_AAG_GRAMMAR_H_INCLUDED
  30. /* Debug traces. */
  31. #ifndef AAGDEBUG
  32. # if defined YYDEBUG
  33. #if YYDEBUG
  34. # define AAGDEBUG 1
  35. # else
  36. # define AAGDEBUG 0
  37. # endif
  38. # else /* ! defined YYDEBUG */
  39. # define AAGDEBUG 0
  40. # endif /* ! defined YYDEBUG */
  41. #endif /* ! defined AAGDEBUG */
  42. #if AAGDEBUG
  43. extern int aagdebug;
  44. #endif
  45. /* "%code requires" blocks. */
  46. #line 22 "../../lib/cgraph/grammar.y"
  47. #include <cghdr.h>
  48. #include <util/agxbuf.h>
  49. struct gstack_s;
  50. struct aagextra_s {
  51. int dummy; /* struct must not be empty */
  52. /* Common */
  53. /* Parser */
  54. /* Lexer */
  55. };
  56. #line 71 "grammar.h"
  57. /* Token type. */
  58. #ifndef AAGTOKENTYPE
  59. # define AAGTOKENTYPE
  60. enum aagtokentype
  61. {
  62. T_graph = 258,
  63. T_node = 259,
  64. T_edge = 260,
  65. T_digraph = 261,
  66. T_subgraph = 262,
  67. T_strict = 263,
  68. T_edgeop = 264,
  69. T_list = 265,
  70. T_attr = 266,
  71. T_atom = 267,
  72. T_qatom = 268
  73. };
  74. #endif
  75. /* Tokens. */
  76. #define T_graph 258
  77. #define T_node 259
  78. #define T_edge 260
  79. #define T_digraph 261
  80. #define T_subgraph 262
  81. #define T_strict 263
  82. #define T_edgeop 264
  83. #define T_list 265
  84. #define T_attr 266
  85. #define T_atom 267
  86. #define T_qatom 268
  87. /* Value type. */
  88. #if ! defined AAGSTYPE && ! defined AAGSTYPE_IS_DECLARED
  89. union AAGSTYPE
  90. {
  91. #line 107 "../../lib/cgraph/grammar.y"
  92. int i;
  93. char *str;
  94. struct Agnode_s *n;
  95. #line 114 "grammar.h"
  96. };
  97. typedef union AAGSTYPE AAGSTYPE;
  98. # define AAGSTYPE_IS_TRIVIAL 1
  99. # define AAGSTYPE_IS_DECLARED 1
  100. #endif
  101. extern AAGSTYPE aaglval;
  102. int aagparse (void);
  103. #endif /* !YY_AAG_GRAMMAR_H_INCLUDED */