aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/y.tab.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-10-13 10:51:54 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-10-13 10:51:54 -0700
commitf2efbb46ef89c7c1693400f7209113c50c959f02 (patch)
tree1c44494a9260dc270aac0a5291a7952ab0e74514 /sys/cmd/rc/y.tab.h
parent0385c87c8434873bdb8b86d35700cdd61286b749 (diff)
Feat(rc): working(ish) version of rc shell
Removed compile commands
Diffstat (limited to 'sys/cmd/rc/y.tab.h')
-rw-r--r--sys/cmd/rc/y.tab.h133
1 files changed, 79 insertions, 54 deletions
diff --git a/sys/cmd/rc/y.tab.h b/sys/cmd/rc/y.tab.h
index 0f5b1bd..ba05ca2 100644
--- a/sys/cmd/rc/y.tab.h
+++ b/sys/cmd/rc/y.tab.h
@@ -1,14 +1,14 @@
-/* A Bison parser, made by GNU Bison 2.3. */
+/* A Bison parser, made by GNU Bison 3.8.2. */
-/* Skeleton interface for Bison's Yacc-like parsers in C
+/* Bison interface for Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
+ 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
+ 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 2, or (at your option)
- any later version.
+ 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
@@ -16,9 +16,7 @@
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, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ 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
@@ -33,40 +31,62 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
-/* Tokens. */
+/* 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_SYS_CMD_RC_Y_TAB_H_INCLUDED
+# define YY_YY_SYS_CMD_RC_Y_TAB_H_INCLUDED
+/* Debug traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+#if YYDEBUG
+extern int yydebug;
+#endif
+
+/* Token kinds. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- FOR = 258,
- IN = 259,
- WHILE = 260,
- IF = 261,
- NOT = 262,
- TWIDDLE = 263,
- BANG = 264,
- SUBSHELL = 265,
- SWITCH = 266,
- FN = 267,
- WORD = 268,
- REDIR = 269,
- DUP = 270,
- PIPE = 271,
- SUB = 272,
- SIMPLE = 273,
- ARGLIST = 274,
- WORDS = 275,
- BRACE = 276,
- PAREN = 277,
- PCMD = 278,
- PIPEFD = 279,
- OROR = 280,
- ANDAND = 281,
- COUNT = 282
- };
+ enum yytokentype
+ {
+ YYEMPTY = -2,
+ YYEOF = 0, /* "end of file" */
+ YYerror = 256, /* error */
+ YYUNDEF = 257, /* "invalid token" */
+ FOR = 258, /* FOR */
+ IN = 259, /* IN */
+ WHILE = 260, /* WHILE */
+ IF = 261, /* IF */
+ NOT = 262, /* NOT */
+ TWIDDLE = 263, /* TWIDDLE */
+ BANG = 264, /* BANG */
+ SUBSHELL = 265, /* SUBSHELL */
+ SWITCH = 266, /* SWITCH */
+ FN = 267, /* FN */
+ WORD = 268, /* WORD */
+ REDIR = 269, /* REDIR */
+ DUP = 270, /* DUP */
+ PIPE = 271, /* PIPE */
+ SUB = 272, /* SUB */
+ SIMPLE = 273, /* SIMPLE */
+ ARGLIST = 274, /* ARGLIST */
+ WORDS = 275, /* WORDS */
+ BRACE = 276, /* BRACE */
+ PAREN = 277, /* PAREN */
+ PCMD = 278, /* PCMD */
+ PIPEFD = 279, /* PIPEFD */
+ ANDAND = 280, /* ANDAND */
+ OROR = 281, /* OROR */
+ COUNT = 282 /* COUNT */
+ };
+ typedef enum yytokentype yytoken_kind_t;
#endif
-/* Tokens. */
+/* Token kinds. */
+#define YYEMPTY -2
+#define YYEOF 0
+#define YYerror 256
+#define YYUNDEF 257
#define FOR 258
#define IN 259
#define WHILE 260
@@ -89,26 +109,31 @@
#define PAREN 277
#define PCMD 278
#define PIPEFD 279
-#define OROR 280
-#define ANDAND 281
+#define ANDAND 280
+#define OROR 281
#define COUNT 282
+/* Value type. */
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+union YYSTYPE
+{
+#line 16 "sys/cmd/rc/syn.y"
+ struct Tree *tree;
+#line 125 "sys/cmd/rc/y.tab.h"
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 16 "syn.y"
-{
- struct tree *tree;
-}
-/* Line 1529 of yacc.c. */
-#line 107 "y.tab.h"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
+};
+typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
+# define YYSTYPE_IS_DECLARED 1
#endif
+
extern YYSTYPE yylval;
+
+int yyparse (void);
+
+
+#endif /* !YY_YY_SYS_CMD_RC_Y_TAB_H_INCLUDED */