Commit 6230aac8 authored by Philip Carns's avatar Philip Carns

remove generated files from repo

parent 3d42903f
......@@ -4,6 +4,16 @@
$(AM_V_GEN)$(LEX) --header-file=$(@:.c=.h) -o $(@:.h=.c) $< \
|| ( $(RM) $(basename $@).h $(basename $@).c ; exit 1)
#
# specific rule for codesparser generation; we want the header to land in
# the codes/ directory because it will be installed for use by other repos
src/iokernellang/codesparser.c codes/codesparser.h: src/iokernellang/codesparser.y
mkdir -p codes
@test "x$(bison_ok)" != "yes" || echo "*** WARNING *** Bison version might be too old"
$(AM_V_GEN)$(YACC) --defines=codes/codesparser.h -o src/iokernellang/codesparser.c $< \
|| ( $(RM) $(basename $@).h $(basename $@).c ; exit 1)
%.c %.h: %.y
@test "x$(bison_ok)" != "yes" || echo "*** WARNING *** Bison version might be too old"
$(AM_V_GEN)$(YACC) --defines=$(@:.c=.h) -o $(@:.h=.c) $< \
......
/* A Bison parser, made by GNU Bison 2.5. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 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 <http://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. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
INTEGER = 258,
VARIABLE = 259,
WHILE = 260,
IF = 261,
PRINT = 262,
WRITE = 263,
WRITEAT = 264,
WRITE_ALL = 265,
WRITEAT_ALL = 266,
READ = 267,
READAT = 268,
READ_ALL = 269,
READAT_ALL = 270,
SYNC = 271,
SLEEP = 272,
OPEN = 273,
CLOSE = 274,
DELETE = 275,
FLUSH = 276,
SEEK = 277,
EXIT = 278,
IFX = 279,
ELSE = 280,
NE = 281,
EQ = 282,
LE = 283,
GE = 284,
GETNUMGROUPS = 285,
GETGROUPID = 286,
GETCURTIME = 287,
GETGROUPSIZE = 288,
GETGROUPRANK = 289,
UMINUS = 290
};
#endif
/* Tokens. */
#define INTEGER 258
#define VARIABLE 259
#define WHILE 260
#define IF 261
#define PRINT 262
#define WRITE 263
#define WRITEAT 264
#define WRITE_ALL 265
#define WRITEAT_ALL 266
#define READ 267
#define READAT 268
#define READ_ALL 269
#define READAT_ALL 270
#define SYNC 271
#define SLEEP 272
#define OPEN 273
#define CLOSE 274
#define DELETE 275
#define FLUSH 276
#define SEEK 277
#define EXIT 278
#define IFX 279
#define ELSE 280
#define NE 281
#define EQ 282
#define LE 283
#define GE 284
#define GETNUMGROUPS 285
#define GETGROUPID 286
#define GETCURTIME 287
#define GETGROUPSIZE 288
#define GETGROUPRANK 289
#define UMINUS 290
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 2068 of yacc.c */
#line 37 "src/iokernellang/codesparser.y"
int64_t iValue; /* integer value */
int64_t sIndex; /* symbol table index */
nodeType *nPtr; /* node pointer */
/* Line 2068 of yacc.c */
#line 128 "src/iokernellang/codesparser.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
} YYLTYPE;
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
#ifndef YYPUSH_DECLS
# define YYPUSH_DECLS
struct CodesIOKernel_pstate;
typedef struct CodesIOKernel_pstate CodesIOKernel_pstate;
enum { YYPUSH_MORE = 4 };
#if defined __STDC__ || defined __cplusplus
int CodesIOKernel_push_parse (CodesIOKernel_pstate *yyps, int yypushed_char, YYSTYPE const *yypushed_val, YYLTYPE const *yypushed_loc, CodesIOKernelContext * context);
#else
int CodesIOKernel_push_parse ();
#endif
#if defined __STDC__ || defined __cplusplus
CodesIOKernel_pstate * CodesIOKernel_pstate_new (void);
#else
CodesIOKernel_pstate * CodesIOKernel_pstate_new ();
#endif
#if defined __STDC__ || defined __cplusplus
void CodesIOKernel_pstate_delete (CodesIOKernel_pstate *yyps);
#else
void CodesIOKernel_pstate_delete ();
#endif
#endif
......@@ -102,15 +102,8 @@ AS_IF([test "x$enable_valgrind_clean" = "xyes"], [
AC_DEFINE([VALGRIND], [1], [If enabling valgrind-clean build])
])
#
# To reactivate rewriting of the codesparser.y file,
# uncomment next line.
#
# NOTE: this will force the latest bison for building,
# even when building from a dist.
#
#
dnl AC_CONFIG_FILES([src/iokernellang/codesparser.y])
AC_CONFIG_FILES([src/iokernellang/codesparser.y])
AC_CONFIG_FILES([Makefile])
......
......@@ -25,14 +25,14 @@ maintainer-clean-local::
src/modelconfig/configparser.h: src/modelconfig/configparser.y
src/modelconfig/configlex.h: src/modelconfig/configlex.l
BUILT_SOURCES += src/iokernellang/codesparser.h \
BUILT_SOURCES += codes/codesparser.h \
src/iokernellang/codesparser.c \
src/iokernellang/codeslexer.h \
codes/codeslexer.h
#src/iokernellang/codesparser.y: src/iokernellang/codesparser.y.in Makefile
src/iokernellang/codesparser.c src/iokernellang/codesparser.h: src/iokernellang/codesparser.y
src/iokernellang/codesparser.c codes/codesparser.h: src/iokernellang/codesparser.y
codes/codeslexer.h: src/iokernellang/codeslexer.h
mkdir -p codes
......
/* A Bison parser, made by GNU Bison 2.5. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 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 <http://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. */
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output. */
#define YYBISON 1
/* Bison version. */
#define YYBISON_VERSION "2.5"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 1
/* Push parsers. */
#define YYPUSH 1
/* Pull parsers. */
#define YYPULL 0
/* Using locations. */
#define YYLSP_NEEDED 1
/* Substitute the variable and function names. */
#define yypush_parse CodesIOKernel_push_parse
#define yypstate_new CodesIOKernel_pstate_new
#define yypstate_delete CodesIOKernel_pstate_delete
#define yypstate CodesIOKernel_pstate
#define yylex CodesIOKernel_lex
#define yyerror CodesIOKernel_error
#define yylval CodesIOKernel_lval
#define yychar CodesIOKernel_char
#define yydebug CodesIOKernel_debug
#define yynerrs CodesIOKernel_nerrs
#define yylloc CodesIOKernel_lloc
/* Copy the first part of user declarations. */
/* Line 268 of yacc.c */
#line 1 "src/iokernellang/codesparser.y"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "codes/CodesIOKernelTypes.h"
#include "codes/CodesIOKernelContext.h"
/* prototypes */
nodeType *opr(int64_t oper, int64_t nops, ...);
nodeType *id(int64_t i);
nodeType *con(int64_t value);
void freeNode(nodeType *p);
int64_t ex(nodeType *p);
int64_t * sym = NULL; /* symbol table */
int64_t * var = NULL;
int * inst_ready = NULL;
int * group_rank = NULL;
int * group_size = NULL;
/* Line 268 of yacc.c */
#line 106 "src/iokernellang/codesparser.c"
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 1
#endif
/* Enabling the token table. */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
INTEGER = 258,
VARIABLE = 259,
WHILE = 260,
IF = 261,
PRINT = 262,
WRITE = 263,
WRITEAT = 264,
WRITE_ALL = 265,
WRITEAT_ALL = 266,
READ = 267,
READAT = 268,
READ_ALL = 269,
READAT_ALL = 270,
SYNC = 271,
SLEEP = 272,
OPEN = 273,
CLOSE = 274,
DELETE = 275,
FLUSH = 276,
SEEK = 277,
EXIT = 278,
IFX = 279,
ELSE = 280,
NE = 281,
EQ = 282,
LE = 283,
GE = 284,
GETNUMGROUPS = 285,
GETGROUPID = 286,
GETCURTIME = 287,
GETGROUPSIZE = 288,
GETGROUPRANK = 289,
UMINUS = 290
};
#endif
/* Tokens. */
#define INTEGER 258
#define VARIABLE 259
#define WHILE 260
#define IF 261
#define PRINT 262
#define WRITE 263
#define WRITEAT 264
#define WRITE_ALL 265
#define WRITEAT_ALL 266
#define READ 267
#define READAT 268
#define READ_ALL 269
#define READAT_ALL 270
#define SYNC 271
#define SLEEP 272
#define OPEN 273
#define CLOSE 274
#define DELETE 275
#define FLUSH 276
#define SEEK 277
#define EXIT 278
#define IFX 279
#define ELSE 280
#define NE 281
#define EQ 282
#define LE 283
#define GE 284
#define GETNUMGROUPS 285
#define GETGROUPID 286
#define GETCURTIME 287
#define GETGROUPSIZE 288
#define GETGROUPRANK 289
#define UMINUS 290
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 293 of yacc.c */
#line 37 "src/iokernellang/codesparser.y"
int64_t iValue; /* integer value */
int64_t sIndex; /* symbol table index */
nodeType *nPtr; /* node pointer */
/* Line 293 of yacc.c */
#line 220 "src/iokernellang/codesparser.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
} YYLTYPE;
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
#ifndef YYPUSH_DECLS
# define YYPUSH_DECLS
struct yypstate;
typedef struct yypstate yypstate;
enum { YYPUSH_MORE = 4 };
#if defined __STDC__ || defined __cplusplus
int yypush_parse (yypstate *yyps, int yypushed_char, YYSTYPE const *yypushed_val, YYLTYPE const *yypushed_loc, CodesIOKernelContext * context);
#else
int yypush_parse ();
#endif
#if defined __STDC__ || defined __cplusplus
yypstate * yypstate_new (void);
#else
yypstate * yypstate_new ();
#endif
#if defined __STDC__ || defined __cplusplus
void yypstate_delete (yypstate *yyps);
#else
void yypstate_delete ();
#endif
#endif
/* Copy the second part of user declarations. */
/* Line 343 of yacc.c */
#line 58 "src/iokernellang/codesparser.y"
#include "codes/CodesIOKernelContext.h"
int CodesIOKernel_lex(YYSTYPE * lvalp, YYLTYPE * llocp, void * scanner);
void CodesIOKernel_error(YYLTYPE * locp, CodesIOKernelContext * context, const char * err)
{
fprintf(stderr, "%i error = %s\n", locp->first_line, err);
}
#define scanner context->scanner_
/* Line 343 of yacc.c */
#line 283 "src/iokernellang/codesparser.c"
#ifdef short
# undef short
#endif
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
# define YYSIZE_T unsigned int
# endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
# endif
# endif
# ifndef YY_
# define YY_(msgid) msgid
# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif
/* Identity function, used to suppress warnings about constant conditions. */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static int
YYID (int yyi)
#else
static int
YYID (yyi)
int yyi;
#endif
{
return yyi;
}
#endif
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
&& defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
YYLTYPE yyls_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
+ 2 * YYSTACK_GAP_MAXIMUM)
# define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))
# endif
# endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 3
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 848
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 50
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 6
/* YYNRULES -- Number of rules. */
#define YYNRULES 50
/* YYNRULES -- Number of states. */
#define YYNSTATES 142
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 290
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 36, 2, 2,
46, 47, 34, 32, 44, 33, 2, 35, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 43,
27, 45, 26, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 48, 2, 49, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,