pktloc_syntax.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_PKTLOC_ROUTE_PKTLOC_SYNTAX_H_INCLUDED
  29. # define YY_PKTLOC_ROUTE_PKTLOC_SYNTAX_H_INCLUDED
  30. /* Debug traces. */
  31. #ifndef YYDEBUG
  32. # define YYDEBUG 0
  33. #endif
  34. #if YYDEBUG
  35. extern int pktloc_debug;
  36. #endif
  37. /* Token type. */
  38. #ifndef YYTOKENTYPE
  39. # define YYTOKENTYPE
  40. enum yytokentype
  41. {
  42. ERROR = 258,
  43. NUMBER = 259,
  44. LAYER = 260,
  45. ALIGN = 261,
  46. NAME = 262
  47. };
  48. #endif
  49. /* Tokens. */
  50. #define ERROR 258
  51. #define NUMBER 259
  52. #define LAYER 260
  53. #define ALIGN 261
  54. #define NAME 262
  55. /* Value type. */
  56. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  57. union YYSTYPE
  58. {
  59. #line 18 "route/pktloc_syntax.y"
  60. struct rtnl_pktloc *l;
  61. uint32_t i;
  62. char *s;
  63. #line 77 "route/pktloc_syntax.h"
  64. };
  65. typedef union YYSTYPE YYSTYPE;
  66. # define YYSTYPE_IS_TRIVIAL 1
  67. # define YYSTYPE_IS_DECLARED 1
  68. #endif
  69. /* Location type. */
  70. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  71. typedef struct YYLTYPE YYLTYPE;
  72. struct YYLTYPE
  73. {
  74. int first_line;
  75. int first_column;
  76. int last_line;
  77. int last_column;
  78. };
  79. # define YYLTYPE_IS_DECLARED 1
  80. # define YYLTYPE_IS_TRIVIAL 1
  81. #endif
  82. int pktloc_parse (void *scanner);
  83. #endif /* !YY_PKTLOC_ROUTE_PKTLOC_SYNTAX_H_INCLUDED */