The Sol Programming Language!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

parser.tab.h 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /* A Bison parser, made by GNU Bison 3.0.4. */
  2. /* Bison interface for Yacc-like parsers in C
  3. Copyright (C) 1984, 1989-1990, 2000-2015 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 3 of the License, or
  7. (at your option) 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, see <http://www.gnu.org/licenses/>. */
  14. /* As a special exception, you may create a larger work that contains
  15. part or all of the Bison parser skeleton and distribute that work
  16. under terms of your choice, so long as that work isn't itself a
  17. parser generator using the skeleton or a modified version thereof
  18. as a parser skeleton. Alternatively, if you modify or redistribute
  19. the parser skeleton itself, you may (at your option) remove this
  20. special exception, which will cause the skeleton and the resulting
  21. Bison output files to be licensed under the GNU General Public
  22. License without this special exception.
  23. This special exception was added by the Free Software Foundation in
  24. version 2.2 of Bison. */
  25. #ifndef YY_YY_PARSER_TAB_H_INCLUDED
  26. # define YY_YY_PARSER_TAB_H_INCLUDED
  27. /* Debug traces. */
  28. #ifndef YYDEBUG
  29. # define YYDEBUG 1
  30. #endif
  31. #if YYDEBUG
  32. extern int yydebug;
  33. #endif
  34. /* Token type. */
  35. #ifndef YYTOKENTYPE
  36. # define YYTOKENTYPE
  37. enum yytokentype
  38. {
  39. IF = 258,
  40. THEN = 259,
  41. ELSEIF = 260,
  42. ELSE = 261,
  43. WHILE = 262,
  44. FOR = 263,
  45. IN = 264,
  46. DO = 265,
  47. FUNC = 266,
  48. MACRO = 267,
  49. LAMBDA = 268,
  50. RETURN = 269,
  51. BREAK = 270,
  52. CONTINUE = 271,
  53. END = 272,
  54. NONE = 273,
  55. IDENT = 274,
  56. INT = 275,
  57. FLOAT = 276,
  58. STRING = 277,
  59. PLUS = 278,
  60. MINUS = 279,
  61. STAR = 280,
  62. SLASH = 281,
  63. PERCENT = 282,
  64. DSTAR = 283,
  65. BAND = 284,
  66. BOR = 285,
  67. BXOR = 286,
  68. BNOT = 287,
  69. LAND = 288,
  70. LOR = 289,
  71. LNOT = 290,
  72. ASSIGN = 291,
  73. ASSIGNPLUS = 292,
  74. ASSIGNMINUS = 293,
  75. ASSIGNSTAR = 294,
  76. ASSIGNSLASH = 295,
  77. ASSIGNDSTAR = 296,
  78. ASSIGNBAND = 297,
  79. ASSIGNBOR = 298,
  80. ASSIGNBXOR = 299,
  81. EQUAL = 300,
  82. NEQUAL = 301,
  83. LESS = 302,
  84. GREATER = 303,
  85. LESSEQ = 304,
  86. GREATEREQ = 305,
  87. RSHIFT = 306,
  88. LSHIFT = 307,
  89. LBRACE = 308,
  90. RBRACE = 309,
  91. BLPAREN = 310,
  92. LPAREN = 311,
  93. RPAREN = 312,
  94. LBRACKET = 313,
  95. RBRACKET = 314,
  96. DOT = 315,
  97. COLON = 316,
  98. SEMICOLON = 317,
  99. COMMA = 318,
  100. POUND = 319,
  101. TBANG = 320
  102. };
  103. #endif
  104. /* Value type. */
  105. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  106. typedef int YYSTYPE;
  107. # define YYSTYPE_IS_TRIVIAL 1
  108. # define YYSTYPE_IS_DECLARED 1
  109. #endif
  110. /* Location type. */
  111. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  112. typedef struct YYLTYPE YYLTYPE;
  113. struct YYLTYPE
  114. {
  115. int first_line;
  116. int first_column;
  117. int last_line;
  118. int last_column;
  119. };
  120. # define YYLTYPE_IS_DECLARED 1
  121. # define YYLTYPE_IS_TRIVIAL 1
  122. #endif
  123. int yyparse (stmt_node **program);
  124. #endif /* !YY_YY_PARSER_TAB_H_INCLUDED */