From d577d991b97ae2b5ee1af23641bcffc3f83af5b2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 4 Nov 2009 11:56:41 -0800 Subject: Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux. --- iup/src/iup_ledlex.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 iup/src/iup_ledlex.h (limited to 'iup/src/iup_ledlex.h') diff --git a/iup/src/iup_ledlex.h b/iup/src/iup_ledlex.h new file mode 100755 index 0000000..ad79ee1 --- /dev/null +++ b/iup/src/iup_ledlex.h @@ -0,0 +1,54 @@ +/** \file + * \brief lexical analysis manager for LED. + * + * See Copyright Notice in "iup.h" + */ + +#ifndef __IUP_LEX_H +#define __IUP_LEX_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* TOKENS */ +#define IUPLEX_TK_END -1 +#define IUPLEX_TK_BEGP 1 +#define IUPLEX_TK_ENDP 2 +#define IUPLEX_TK_ATTR 3 +#define IUPLEX_TK_STR 4 +#define IUPLEX_TK_NAME 5 +#define IUPLEX_TK_NUMB 6 +#define IUPLEX_TK_SET 7 +#define IUPLEX_TK_COMMA 8 +#define IUPLEX_TK_FUNC 9 +#define IUPLEX_TK_ENDATTR 10 + +/* ERRORS */ +#define IUPLEX_FILENOTOPENED 1 +#define IUPLEX_NOTMATCH 2 +#define IUPLEX_NOTENDATTR 3 +#define IUPLEX_PARSEERROR 4 + +char* iupLexGetError (void); +int iupLexStart (const char *filename, int is_file); +void iupLexClose (void); +int iupLexLookAhead (void); +int iupLexAdvance (void); +int iupLexFollowedBy (int t); +int iupLexMatch (int t); +int iupLexSeenMatch (int t, int *erro); +unsigned char iupLexByte (void); +int iupLexInt (void); +float iupLexFloat (void); +char* iupLexGetName (void); +char* iupLexName (void); +float iupLexGetNumber (void); +int iupLexError (int n, ...); +Iclass* iupLexGetClass (void); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3