When I compile a C file, it says:
pcat.lex:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hasTab’.
Here’s the beginning of the file:
#include "ctype.h"
#include "stdio.h"
#include "stdlib.h"
#include "pcat.tab.h"
#define YY_USER_ACTION Do_Before_Each_Action();
#define STRING_MAX_LENGTH 255
#define IDENTIFIER_MAX_LENGTH 255
#define MAX_INT 2147483647
static int lineno = 1;
static int colno = 1;
static bool hasTab;
void Do_Before_Each_Action();
Does anybody know what happens?
I’m using Mac OS X 10.6.7
boolis not C. Tryintinstead.