#ifndef token_HH
#define token_HH

#define PUBLIC
#define PRIVATE static

/***********************************************************************
     "token.hh": TOKENizer and auxiliary functions.
***********************************************************************/

/***********************************
  (C) Copyright 1992-1993; dit/upm
   Distributed under the conditions stated in the
   TOPO General Public License (see file LICENSE)
 ***********************************
 $Log: token.desc,v $
 * Revision 1.2  1993/03/29  18:14:34  lotos
 * error recovery added
 *
 * Revision 1.1  1993/03/18  11:14:24  lotos
 * Initial revision
 *
 ***********************************/

/* KJT 29/10/04: changed to use "stdarg" instead of "varargs" */

typedef struct
{ int name;
  char *antv;
  int *line;
} yystype;

typedef struct
{ int type;
  yystype yylval;
} token;

token *	gtk ();

#define yyerror(msg)	SYNmiss("%s", msg)

/* syntax error printing function */

void	SYNmiss (char *msg, ...);

/* syntax error counting function */

#define SYNcnt()	errorcount
#endif
