- Fixed scanner problem (I forgot the interaction between flex and bison)
This commit is contained in:
parent
c125c8f54e
commit
eb7f14c891
@ -31,7 +31,7 @@ if (BISON_FOUND)
|
|||||||
COMMAND ${BISON_EXECUTABLE}
|
COMMAND ${BISON_EXECUTABLE}
|
||||||
# TODO: I should look up from which version the -o
|
# TODO: I should look up from which version the -o
|
||||||
# switch works, might not be portable.
|
# switch works, might not be portable.
|
||||||
ARGS -oparser.c parser.y
|
ARGS -d -oparser.c parser.y
|
||||||
COMMENT "Building parser.c from parser.y using bison"
|
COMMENT "Building parser.c from parser.y using bison"
|
||||||
)
|
)
|
||||||
else (BISON_FOUND)
|
else (BISON_FOUND)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
%{
|
%{
|
||||||
#include "pheading.h"
|
#include "pheading.h"
|
||||||
/* #include "lex.yy.c" */
|
|
||||||
#include "tac.h"
|
#include "tac.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user