diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2023-01-06 20:48:22 +0000 | 
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2023-01-06 20:48:22 +0000 | 
| commit | 6f4e10db3298f6d65e1e646fe52aaafc3682b788 (patch) | |
| tree | 0a8de0ec1173c00886bcde1c3b18e0963e5f2b83 /lib/sl/slc-gram.h | |
| parent | d5d1e8b157da7410fe13e6302f8e1bee81320bb5 (diff) | |
Diffstat (limited to 'lib/sl/slc-gram.h')
| -rw-r--r-- | lib/sl/slc-gram.h | 83 | 
1 files changed, 54 insertions, 29 deletions
diff --git a/lib/sl/slc-gram.h b/lib/sl/slc-gram.h index b6b16419ded2..c35fef13ab08 100644 --- a/lib/sl/slc-gram.h +++ b/lib/sl/slc-gram.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,37 +31,64 @@     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_SLC_GRAM_H_INCLUDED +# define YY_YY_SLC_GRAM_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 { -     LITERAL = 258, -     STRING = 259 -   }; +  enum yytokentype +  { +    YYEMPTY = -2, +    YYEOF = 0,                     /* "end of file"  */ +    YYerror = 256,                 /* error  */ +    YYUNDEF = 257,                 /* "invalid token"  */ +    LITERAL = 258,                 /* LITERAL  */ +    STRING = 259                   /* STRING  */ +  }; +  typedef enum yytokentype yytoken_kind_t;  #endif -/* Tokens.  */ +/* Token kinds.  */ +#define YYEMPTY -2 +#define YYEOF 0 +#define YYerror 256 +#define YYUNDEF 257  #define LITERAL 258  #define STRING 259 - - - +/* Value type.  */  #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE -#line 57 "slc-gram.y" +union YYSTYPE  { +#line 57 "slc-gram.y" +  	char *string;  	struct assignment *assignment; -} -/* Line 1529 of yacc.c.  */ -#line 62 "slc-gram.h" -	YYSTYPE; -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 + +#line 80 "slc-gram.h" + +}; +typedef union YYSTYPE YYSTYPE;  # define YYSTYPE_IS_TRIVIAL 1 +# define YYSTYPE_IS_DECLARED 1  #endif +  extern YYSTYPE yylval; + +int yyparse (void); + + +#endif /* !YY_YY_SLC_GRAM_H_INCLUDED  */  | 
