grammar.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #pragma once
  2. /* A Bison parser, made by GNU Bison 2.4.1. */
  3. /* Skeleton interface for Bison's Yacc-like parsers in C
  4. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  5. Free Software Foundation, Inc.
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  16. /* As a special exception, you may create a larger work that contains
  17. part or all of the Bison parser skeleton and distribute that work
  18. under terms of your choice, so long as that work isn't itself a
  19. parser generator using the skeleton or a modified version thereof
  20. as a parser skeleton. Alternatively, if you modify or redistribute
  21. the parser skeleton itself, you may (at your option) remove this
  22. special exception, which will cause the skeleton and the resulting
  23. Bison output files to be licensed under the GNU General Public
  24. License without this special exception.
  25. This special exception was added by the Free Software Foundation in
  26. version 2.2 of Bison. */
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif /* __cplusplus */
  30. /* Tokens. */
  31. #ifndef YYTOKENTYPE
  32. # define YYTOKENTYPE
  33. /* Put the tokens into the symbol table, so that GDB and other debuggers
  34. know about them. */
  35. enum yytokentype {
  36. TOK_BOOLEAN = 258,
  37. TOK_INTEGER = 259,
  38. TOK_HEX = 260,
  39. TOK_INTEGER64 = 261,
  40. TOK_HEX64 = 262,
  41. TOK_FLOAT = 263,
  42. TOK_STRING = 264,
  43. TOK_NAME = 265,
  44. TOK_EQUALS = 266,
  45. TOK_NEWLINE = 267,
  46. TOK_ARRAY_START = 268,
  47. TOK_ARRAY_END = 269,
  48. TOK_LIST_START = 270,
  49. TOK_LIST_END = 271,
  50. TOK_COMMA = 272,
  51. TOK_GROUP_START = 273,
  52. TOK_GROUP_END = 274,
  53. TOK_SEMICOLON = 275,
  54. TOK_GARBAGE = 276,
  55. TOK_ERROR = 277
  56. };
  57. #endif
  58. /* Tokens. */
  59. #define TOK_BOOLEAN 258
  60. #define TOK_INTEGER 259
  61. #define TOK_HEX 260
  62. #define TOK_INTEGER64 261
  63. #define TOK_HEX64 262
  64. #define TOK_FLOAT 263
  65. #define TOK_STRING 264
  66. #define TOK_NAME 265
  67. #define TOK_EQUALS 266
  68. #define TOK_NEWLINE 267
  69. #define TOK_ARRAY_START 268
  70. #define TOK_ARRAY_END 269
  71. #define TOK_LIST_START 270
  72. #define TOK_LIST_END 271
  73. #define TOK_COMMA 272
  74. #define TOK_GROUP_START 273
  75. #define TOK_GROUP_END 274
  76. #define TOK_SEMICOLON 275
  77. #define TOK_GARBAGE 276
  78. #define TOK_ERROR 277
  79. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  80. typedef union YYSTYPE
  81. {
  82. /* Line 1676 of yacc.c */
  83. #line 85 "grammar.y"
  84. int ival;
  85. long long llval;
  86. double fval;
  87. char *sval;
  88. /* Line 1676 of yacc.c */
  89. #line 105 "grammar.h"
  90. } YYSTYPE;
  91. # define YYSTYPE_IS_TRIVIAL 1
  92. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  93. # define YYSTYPE_IS_DECLARED 1
  94. #endif
  95. #ifdef __cplusplus
  96. }
  97. #endif /* __cplusplus */