[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error invalid directive: '%param'
From: |
Akim Demaille |
Subject: |
Re: error invalid directive: '%param' |
Date: |
Sat, 18 Aug 2018 17:05:48 +0200 |
Hi!
> Le 30 nov. 2015 à 14:50, address@hidden a écrit :
>
> Hi,
> I'm trying to build an application called kregexpeditor but 'make' fails
> with the following error:
>
> [ 1%] [BISON][qregexpparser] Building parser with bison 2.7.12-4996
> qregexpparser.y:94.1-6: error: invalid directive: '%param'
> qregexpparser.y:94.8-27: error: syntax error, unexpected {...}
> CMakeFiles/kregexpeditorcommon.dir/build.make:53: recipe for target
> 'gen_qregexpparser.cc' failed
> make[2]: *** [gen_qregexpparser.cc] Error 1
> CMakeFiles/Makefile2:127: recipe for target
> 'CMakeFiles/kregexpeditorcommon.dir/all' failed
> make[1]: *** [CMakeFiles/kregexpeditorcommon.dir/all] Error 2
> Makefile:127: recipe for target 'all' failed
> make: *** [all] Error 2
>
> The line which the error refers to is the following:
>
> %param { yyscan_t scanner }
>
> and this is the complete source code of qregexpparser.y:
>
> https://paste.kde.org/pzadtxiig
>
> This is the command used in cmakelists.txt:
>
> BISON_TARGET(qregexpparser qregexpparser.y
> ${CMAKE_CURRENT_BINARY_DIR}/gen_qregexpparser.cc COMPILE_FLAGS "-d -p
> qregexp")
>
> In my system is installed bison 2.7.1
>
> Since my bison knowledge is 0, can anyone help me to track the error?
I don’t think you care today, but %param was introduced in Bison 3.0.
Cheers.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: error invalid directive: '%param',
Akim Demaille <=