Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-24542-2332654
DataBaseContest-3290
Commits
d1974980
Commit
d1974980
authored
10 months ago
by
哞眸眸
Browse files
Options
Download
Patches
Plain Diff
reparser
parent
c2f23e89
noah_debug
liam_debug
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/parser/lex.yy.c
+2095
-0
src/parser/lex.yy.c
src/parser/yacc.tab.h
+130
-0
src/parser/yacc.tab.h
with
2225 additions
and
0 deletions
+2225
-0
src/parser/lex.yy.c
+
2095
−
0
View file @
d1974980
This diff is collapsed.
Click to expand it.
src/parser/yacc.tab.h
+
130
−
0
View file @
d1974980
/* A Bison parser, made by GNU Bison 3.8.2. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
#ifndef YY_YY_HOME_SHINUOHUI_CODE_DATABASECONTEST_SRC_PARSER_YACC_TAB_H_INCLUDED
# define YY_YY_HOME_SHINUOHUI_CODE_DATABASECONTEST_SRC_PARSER_YACC_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern
int
yydebug
;
#endif
/* Token kinds. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum
yytokentype
{
YYEMPTY
=
-
2
,
YYEOF
=
0
,
/* "end of file" */
YYerror
=
256
,
/* error */
YYUNDEF
=
257
,
/* "invalid token" */
SHOW
=
258
,
/* SHOW */
TABLES
=
259
,
/* TABLES */
CREATE
=
260
,
/* CREATE */
TABLE
=
261
,
/* TABLE */
DROP
=
262
,
/* DROP */
DESC
=
263
,
/* DESC */
INSERT
=
264
,
/* INSERT */
INTO
=
265
,
/* INTO */
VALUES
=
266
,
/* VALUES */
DELETE
=
267
,
/* DELETE */
FROM
=
268
,
/* FROM */
ASC
=
269
,
/* ASC */
ORDER
=
270
,
/* ORDER */
BY
=
271
,
/* BY */
AS
=
272
,
/* AS */
WHERE
=
273
,
/* WHERE */
UPDATE
=
274
,
/* UPDATE */
SET
=
275
,
/* SET */
SELECT
=
276
,
/* SELECT */
INT
=
277
,
/* INT */
CHAR
=
278
,
/* CHAR */
FLOAT
=
279
,
/* FLOAT */
INDEX
=
280
,
/* INDEX */
AND
=
281
,
/* AND */
JOIN
=
282
,
/* JOIN */
EXIT
=
283
,
/* EXIT */
HELP
=
284
,
/* HELP */
TXN_BEGIN
=
285
,
/* TXN_BEGIN */
TXN_COMMIT
=
286
,
/* TXN_COMMIT */
TXN_ABORT
=
287
,
/* TXN_ABORT */
TXN_ROLLBACK
=
288
,
/* TXN_ROLLBACK */
ORDER_BY
=
289
,
/* ORDER_BY */
ENABLE_NESTLOOP
=
290
,
/* ENABLE_NESTLOOP */
ENABLE_SORTMERGE
=
291
,
/* ENABLE_SORTMERGE */
LEQ
=
292
,
/* LEQ */
NEQ
=
293
,
/* NEQ */
GEQ
=
294
,
/* GEQ */
T_EOF
=
295
,
/* T_EOF */
COUNT
=
296
,
/* COUNT */
MAX
=
297
,
/* MAX */
MIN
=
298
,
/* MIN */
SUM
=
299
,
/* SUM */
IDENTIFIER
=
300
,
/* IDENTIFIER */
VALUE_STRING
=
301
,
/* VALUE_STRING */
VALUE_INT
=
302
,
/* VALUE_INT */
VALUE_FLOAT
=
303
,
/* VALUE_FLOAT */
VALUE_BOOL
=
304
/* VALUE_BOOL */
};
typedef
enum
yytokentype
yytoken_kind_t
;
#endif
/* Value type. */
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef
struct
YYLTYPE
YYLTYPE
;
struct
YYLTYPE
{
int
first_line
;
int
first_column
;
int
last_line
;
int
last_column
;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
int
yyparse
(
void
);
#endif
/* !YY_YY_HOME_SHINUOHUI_CODE_DATABASECONTEST_SRC_PARSER_YACC_TAB_H_INCLUDED */
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets