
/* Hive Spin Compiler lexical analysis */

#define MAXTOKENLENGTH 32

struct _token {
  char     text[MAXTOKENLENGTH+1];
  int      type;
  int      line;
  int      col;
  unsigned value;
};
typedef struct _token Token;

/* the lexer API: the current token as a global symbol and
 * three functions.
 */
extern Token token;

void NextToken();
void OpenFile(char *);
void CloseFile();