Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. /* A Bison parser, made by GNU Bison 3.0.4. */
  2.  
  3. /* Bison interface for Yacc-like parsers in C
  4.  
  5. Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
  6.  
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation, either version 3 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  19.  
  20. /* As a special exception, you may create a larger work that contains
  21. part or all of the Bison parser skeleton and distribute that work
  22. under terms of your choice, so long as that work isn't itself a
  23. parser generator using the skeleton or a modified version thereof
  24. as a parser skeleton. Alternatively, if you modify or redistribute
  25. the parser skeleton itself, you may (at your option) remove this
  26. special exception, which will cause the skeleton and the resulting
  27. Bison output files to be licensed under the GNU General Public
  28. License without this special exception.
  29.  
  30. This special exception was added by the Free Software Foundation in
  31. version 2.2 of Bison. */
  32.  
  33. #ifndef YY_YY_Y_TAB_H_INCLUDED
  34. # define YY_YY_Y_TAB_H_INCLUDED
  35. /* Debug traces. */
  36. #ifndef YYDEBUG
  37. # define YYDEBUG 0
  38. #endif
  39. #if YYDEBUG
  40. extern int yydebug;
  41. #endif
  42.  
  43. /* Token type. */
  44. #ifndef YYTOKENTYPE
  45. # define YYTOKENTYPE
  46. enum yytokentype
  47. {
  48. INTLIT = 258,
  49. REALLIT = 259,
  50. STRLIT = 260,
  51. ID = 261,
  52. INT = 262,
  53. FLOAT32 = 263,
  54. STRING = 264,
  55. BOOL = 265,
  56. OR = 266,
  57. AND = 267,
  58. LT = 268,
  59. GT = 269,
  60. EQ = 270,
  61. NE = 271,
  62. LE = 272,
  63. GE = 273,
  64. PLUS = 274,
  65. MINUS = 275,
  66. STAR = 276,
  67. DIV = 277,
  68. MOD = 278,
  69. NOT = 279,
  70. SEMICOLON = 280,
  71. BLANKID = 281,
  72. ASSIGN = 282,
  73. COMMA = 283,
  74. LBRACE = 284,
  75. RBRACE = 285,
  76. LPAR = 286,
  77. RPAR = 287,
  78. LSQ = 288,
  79. RSQ = 289,
  80. PACKAGE = 290,
  81. RETURN = 291,
  82. ELSE = 292,
  83. IF = 293,
  84. FOR = 294,
  85. VAR = 295,
  86. PRINT = 296,
  87. FUNC = 297,
  88. PARSEINT = 298,
  89. CMDARGS = 299,
  90. RESERVED = 300,
  91. flag = 301
  92. };
  93. #endif
  94. /* Tokens. */
  95. #define INTLIT 258
  96. #define REALLIT 259
  97. #define STRLIT 260
  98. #define ID 261
  99. #define INT 262
  100. #define FLOAT32 263
  101. #define STRING 264
  102. #define BOOL 265
  103. #define OR 266
  104. #define AND 267
  105. #define LT 268
  106. #define GT 269
  107. #define EQ 270
  108. #define NE 271
  109. #define LE 272
  110. #define GE 273
  111. #define PLUS 274
  112. #define MINUS 275
  113. #define STAR 276
  114. #define DIV 277
  115. #define MOD 278
  116. #define NOT 279
  117. #define SEMICOLON 280
  118. #define BLANKID 281
  119. #define ASSIGN 282
  120. #define COMMA 283
  121. #define LBRACE 284
  122. #define RBRACE 285
  123. #define LPAR 286
  124. #define RPAR 287
  125. #define LSQ 288
  126. #define RSQ 289
  127. #define PACKAGE 290
  128. #define RETURN 291
  129. #define ELSE 292
  130. #define IF 293
  131. #define FOR 294
  132. #define VAR 295
  133. #define PRINT 296
  134. #define FUNC 297
  135. #define PARSEINT 298
  136. #define CMDARGS 299
  137. #define RESERVED 300
  138. #define flag 301
  139.  
  140. /* Value type. */
  141. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  142.  
  143. union YYSTYPE
  144. {
  145. #line 63 "gocompiler.y" /* yacc.c:1909 */
  146.  
  147. Token value;
  148. Structure *node;
  149.  
  150. #line 151 "y.tab.h" /* yacc.c:1909 */
  151. };
  152.  
  153. typedef union YYSTYPE YYSTYPE;
  154. # define YYSTYPE_IS_TRIVIAL 1
  155. # define YYSTYPE_IS_DECLARED 1
  156. #endif
  157.  
  158.  
  159. extern YYSTYPE yylval;
  160.  
  161. int yyparse (void);
  162.  
  163. #endif /* !YY_YY_Y_TAB_H_INCLUDED */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement