Year 2 compilers coureswork

C.tab.h 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* A Bison parser, made by GNU Bison 1.875. */
  2. /* Skeleton parser for Yacc-like parsing with Bison,
  3. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA. */
  16. /* As a special exception, when this file is copied by Bison into a
  17. Bison output file, you may use that output file without restriction.
  18. This special exception was added by the Free Software Foundation
  19. in version 1.24 of Bison. */
  20. /* Tokens. */
  21. #ifndef YYTOKENTYPE
  22. # define YYTOKENTYPE
  23. /* Put the tokens into the symbol table, so that GDB and other debuggers
  24. know about them. */
  25. enum yytokentype {
  26. IDENTIFIER = 258,
  27. CONSTANT = 259,
  28. STRING_LITERAL = 260,
  29. LE_OP = 261,
  30. GE_OP = 262,
  31. EQ_OP = 263,
  32. NE_OP = 264,
  33. EXTERN = 265,
  34. AUTO = 266,
  35. INT = 267,
  36. VOID = 268,
  37. FUNCTION = 269,
  38. APPLY = 270,
  39. LEAF = 271,
  40. IF = 272,
  41. ELSE = 273,
  42. WHILE = 274,
  43. CONTINUE = 275,
  44. BREAK = 276,
  45. RETURN = 277
  46. };
  47. #endif
  48. #define IDENTIFIER 258
  49. #define CONSTANT 259
  50. #define STRING_LITERAL 260
  51. #define LE_OP 261
  52. #define GE_OP 262
  53. #define EQ_OP 263
  54. #define NE_OP 264
  55. #define EXTERN 265
  56. #define AUTO 266
  57. #define INT 267
  58. #define VOID 268
  59. #define FUNCTION 269
  60. #define APPLY 270
  61. #define LEAF 271
  62. #define IF 272
  63. #define ELSE 273
  64. #define WHILE 274
  65. #define CONTINUE 275
  66. #define BREAK 276
  67. #define RETURN 277
  68. #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  69. typedef int YYSTYPE;
  70. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  71. # define YYSTYPE_IS_DECLARED 1
  72. # define YYSTYPE_IS_TRIVIAL 1
  73. #endif
  74. extern YYSTYPE yylval;