-#include <fstream.h>
+#include <fstream>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
bool sFlag = false;
bool bFlag = false;
+using namespace std;
+
int main(unsigned argc, char *argv[]){
fileName = NULL;
if(argc == 1)
-/* Generated by re2c 0.5 on Sat May 15 11:35:52 1999 */
+/* Generated by re2c 0.5 on Sat Apr 6 20:23:48 2002 */
#line 1 "scanner.re"
#include <stdlib.h>
#include <string.h>
yy5:
#line 78
{ if(cursor == eof) RETURN(0);
- out.write(tok, cursor - tok);
+ out.write((char *)tok, cursor - tok);
tok = pos = cursor; cline++;
goto echo; }
yy6: yych = *++YYCURSOR;
yy13: yych = *++YYCURSOR;
yy14:
#line 75
- { out.write(tok, &cursor[-7] - tok);
+ { out.write((char *)tok, &cursor[-7] - tok);
tok = cursor;
RETURN(1); }
}
tok = cursor;
echo:
/*!re2c
- "/*!re2c" { out.write(tok, &cursor[-7] - tok);
+ "/*!re2c" { out.write((char *)tok, &cursor[-7] - tok);
tok = cursor;
RETURN(1); }
"\n" { if(cursor == eof) RETURN(0);
- out.write(tok, cursor - tok);
+ out.write((char *)tok, cursor - tok);
tok = pos = cursor; cline++;
goto echo; }
any { goto echo; }
-#define CLOSE 257
-#define ID 258
-#define CODE 259
-#define RANGE 260
-#define STRING 261
+#ifndef BISON_Y_TAB_H
+# define BISON_Y_TAB_H
+
+#ifndef YYSTYPE
typedef union {
Symbol *symbol;
RegExp *regexp;
Token *token;
char op;
-} YYSTYPE;
+} yystype;
+# define YYSTYPE yystype
+#endif
+# define CLOSE 257
+# define ID 258
+# define CODE 259
+# define RANGE 260
+# define STRING 261
+
+
extern YYSTYPE yylval;
+
+#endif /* not BISON_Y_TAB_H */