ich möchte in einem qmake-Projekt einen Scanner (flex) und einen Parser (bison) einbinden.
Code: Alles auswählen
SOURCES += mathparser.cpp \
main.cpp \
tparser.cpp \
TFncLib.cpp
HEADERS += mathparser.h \
tparser.h \
TFncLib.h
TEMPLATE = app
CONFIG += warn_on \
thread \
qt \
debug
TARGET = ../bin/mathparser
RESOURCES = application.qrc
FORMS += NumWindow.ui
CONFIG -= release
LEXSOURCES += rechner.ll
YACCSOURCES += rechner.yy
rechner.yy:39.1-2: syntax error, unexpected %%
die Quelldatei rechner.yy ist z.Z. noch leer
Code: Alles auswählen
/*
*
* Use options
*
* %name-prefix="foo"
* %yacc
*
* to create multiple parsers in one project.
*
*/
%{
%}
%debug
%%
%%
rechner.c:1016: undefined reference to `rechnerwrap'
die Quelldatei rechner.ll ist z.Z. noch leer
Code: Alles auswählen
/*
*
* Use options
*
* %option prefix="foo"
* %option outfile="lex.yy.c"
*
* to create multiple flex scanner in one project.
*
*
* To create scanner class:
*
* %option c++
*
* (see '%option yyclass' also!)
*
*/
%{
%}
%option debug
%%
%%