/*
 * This file is part of Beastie <https://purl.org/nxg/dist/beastie>
 * SPDX-FileCopyrightText: 2023 Norman Gray <https://nxg.me.uk>
 * SPDX-License-Identifier: BSD-2-Clause
 */

#ifndef YYCOMMON_H_LOADED
#define YYCOMMON_H_LOADED 1

/* This declares a couple of structures which are common to all of the
 * lexers, which we'd get from eg parse-aux.tab.h.  However we
 * can't easily include there willy-nilly, since that causes
 * collisions of definitions.
 */

#if !defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{
  int first_line;
  int first_column;
  int last_line;
  int last_column;
} YYLTYPE;
#define YYLTYPE_IS_DECLARED 1
#endif

#ifndef YYSTYPE_IS_DECLARED
#define YYSTYPE s7_pointer
#define YYSTYPE_IS_DECLARED 1
#endif

#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
#endif

#endif /* YYCOMMON_H_LOADED */
