From eb7f14c8917b1e8ccb6f6010da806531d4962a3b Mon Sep 17 00:00:00 2001 From: ccremers Date: Tue, 9 Jan 2007 15:22:34 +0000 Subject: [PATCH] - Fixed scanner problem (I forgot the interaction between flex and bison) --- src/ScannerParser.cmake | 2 +- src/parser.y | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ScannerParser.cmake b/src/ScannerParser.cmake index 1d94aba..a778c3f 100644 --- a/src/ScannerParser.cmake +++ b/src/ScannerParser.cmake @@ -31,7 +31,7 @@ if (BISON_FOUND) COMMAND ${BISON_EXECUTABLE} # TODO: I should look up from which version the -o # 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" ) else (BISON_FOUND) diff --git a/src/parser.y b/src/parser.y index c91382d..c0027ae 100644 --- a/src/parser.y +++ b/src/parser.y @@ -1,6 +1,5 @@ %{ #include "pheading.h" -/* #include "lex.yy.c" */ #include "tac.h" #include "error.h"