/*	lex.h
 *
 *		This contains my parser engine
 */

/*  RCompile - UNIX Resource compiler for YAAF Library
 *  Copyright (C) 1998 William Edward Woody
 *  
 *  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
 *  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, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 *  02111-1307, USA.
 *  
 *  To contact the author, either e-mail me at woody@pandawave.com, 
 *	or write to
 *  
 *          William Edward Woody
 *          In Phase Consulting
 *          1545 Ard Eevin Avenue
 *          Glendale, CA 91202
 *
 *	Or visit us on the web at http://www.pandawave.com
 */

#ifndef PandaWave_LEX
#define PandaWave_LEX

#ifdef __cplusplus
extern "C" {
#endif

/************************************************************************/
/*																		*/
/*	Lexical Analysis													*/
/*																		*/
/************************************************************************/

/*
 *	Constants
 */

#define	KLexInteger				256
#define KLexString				257
#define KLexToken				258
#define KLexChar				259
#define KLexReal				260

/*
 *	Predefined tokens
 */

#define	KTokenRaw				300
#define	KTokenRData				301
#define KTokenMenu				302
#define KTokenBegin				303
#define KTokenEnd				304
#define KTokenItem				305
#define KTokenSeparator			306
#define KTokenControl			307

/*
 *	Externals
 */

extern void						PrintError(char *arg,...);
extern void						InitLexEngine(void);
extern void						EndLexEngine(void);
extern void						ReadLexFile(char *);
extern void						PushBackToken(int);
extern int						GetNextToken();
extern const char				*TokenToString(int);

/*
 *	Token values
 */

extern long						GInteger;
extern double					GReal;
extern char						GToken[];

#ifdef __cplusplus
}
#endif

#endif
