flush
[m6w6/ext-psi] / idl / lexer.re
index d52436ae361a146e0eefcb702ebdaedc36402a15..4c9e0fea282726115b70d93dfcc0c0dc1d33168b 100644 (file)
@@ -5,13 +5,23 @@
 #include <assert.h>
 
 #include "lexer.h"
-#include "parser.h"
-#include "types.h"
 
-#ifndef BSIZE
+#if INTERFACE
 /*!max:re2c*/
 #define BSIZE 256
+
+typedef struct PSI_Lexer {
+       decl_typedefs *defs;
+       decls *decls;
+       impls *impls;
+       char *lib;
+       char *fn;
+       FILE *fp;
+       size_t line;
+       char *cur, *tok, *lim, *eof, *ctx, *mrk, buf[BSIZE];
+} PSI_Lexer;
 #endif
+
 #if BSIZE < YYMAXFILL
 # error BSIZE must be greater than YYMAXFILL
 #endif