summaryrefslogtreecommitdiff
path: root/iup/src/iup_ledlex.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/src/iup_ledlex.h
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_ledlex.h')
-rwxr-xr-xiup/src/iup_ledlex.h54
1 files changed, 54 insertions, 0 deletions
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