this should seriously work

This commit is contained in:
Dana Jansens 2003-04-02 18:54:56 +00:00
parent 089a7320ff
commit 87fbee961f
2 changed files with 6 additions and 9 deletions

View file

@ -5,11 +5,11 @@
#include "y.tab.h" #include "y.tab.h"
typedef enum { typedef enum {
TOKEN_REAL = REAL, TOKEN_REAL,
TOKEN_INTEGER = INTEGER, TOKEN_INTEGER,
TOKEN_STRING = STRING, TOKEN_STRING,
TOKEN_IDENTIFIER = IDENTIFIER, TOKEN_IDENTIFIER,
TOKEN_BOOL = BOOL, TOKEN_BOOL,
TOKEN_LBRACKET = '(', TOKEN_LBRACKET = '(',
TOKEN_RBRACKET = ')', TOKEN_RBRACKET = ')',
TOKEN_LBRACE = '{', TOKEN_LBRACE = '{',

View file

@ -1,12 +1,9 @@
%{ %{
#include <glib.h> #include "parse.h"
#include "y.tab.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
extern void yyerror(char *err);
int yylineno = 1; int yylineno = 1;
%} %}