Year 2 compilers coureswork

C.tab.h 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* A Bison parser, made by GNU Bison 2.3. */
  2. /* Skeleton interface for Bison's Yacc-like parsers in C
  3. Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  4. Free Software Foundation, 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 2, or (at your option)
  8. 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, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. Boston, MA 02110-1301, USA. */
  17. /* As a special exception, you may create a larger work that contains
  18. part or all of the Bison parser skeleton and distribute that work
  19. under terms of your choice, so long as that work isn't itself a
  20. parser generator using the skeleton or a modified version thereof
  21. as a parser skeleton. Alternatively, if you modify or redistribute
  22. the parser skeleton itself, you may (at your option) remove this
  23. special exception, which will cause the skeleton and the resulting
  24. Bison output files to be licensed under the GNU General Public
  25. License without this special exception.
  26. This special exception was added by the Free Software Foundation in
  27. version 2.2 of Bison. */
  28. /* Tokens. */
  29. #ifndef YYTOKENTYPE
  30. # define YYTOKENTYPE
  31. /* Put the tokens into the symbol table, so that GDB and other debuggers
  32. know about them. */
  33. enum yytokentype {
  34. IDENTIFIER = 258,
  35. CONSTANT = 259,
  36. STRING_LITERAL = 260,
  37. LE_OP = 261,
  38. GE_OP = 262,
  39. EQ_OP = 263,
  40. NE_OP = 264,
  41. EXTERN = 265,
  42. AUTO = 266,
  43. INT = 267,
  44. VOID = 268,
  45. FUNCTION = 269,
  46. APPLY = 270,
  47. LEAF = 271,
  48. IF = 272,
  49. ELSE = 273,
  50. WHILE = 274,
  51. CONTINUE = 275,
  52. BREAK = 276,
  53. RETURN = 277
  54. };
  55. #endif
  56. /* Tokens. */
  57. #define IDENTIFIER 258
  58. #define CONSTANT 259
  59. #define STRING_LITERAL 260
  60. #define LE_OP 261
  61. #define GE_OP 262
  62. #define EQ_OP 263
  63. #define NE_OP 264
  64. #define EXTERN 265
  65. #define AUTO 266
  66. #define INT 267
  67. #define VOID 268
  68. #define FUNCTION 269
  69. #define APPLY 270
  70. #define LEAF 271
  71. #define IF 272
  72. #define ELSE 273
  73. #define WHILE 274
  74. #define CONTINUE 275
  75. #define BREAK 276
  76. #define RETURN 277
  77. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  78. typedef int YYSTYPE;
  79. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  80. # define YYSTYPE_IS_DECLARED 1
  81. # define YYSTYPE_IS_TRIVIAL 1
  82. #endif
  83. extern YYSTYPE yylval;