Le dimanche 03 avril 2005 à 21:17 +0200, Oliver Lemke a écrit : > Hi, > > On Mon, 2005-03-28 at 18:55 +0200, Gabriel de Perthuis wrote: > > Patch is attached, it's a work in progress but it works. > > I tried your patch but haven't succeeded to process the lex file either > with flex nor bison: > > # flex -V > flex version 2.5.4 > # flex rhythmdb-query-parser.l > "rhythmdb-query-parser.l", line 45: unrecognized %option: reentrant I guess you need a more recent flex. Mine is 2.5.31. I'm attaching the c source. The reentrancy is for handling parenthesis. There's no need for bison since the grammar side is already in rhythmbox. > After adding rhythmdb-query-parser.l to librhythmdb_la_SOURCES in > rhythmdb/Makefile.am and AC_PROG_LEX to configure.ac the lex file is > handled correctly by make. Except that flex is bailing out as mentioned > above. Thanks. I had finally peeked into gstreamer to do it.
Attachment:
rhythmdb-query-parser.c.gz
Description: GNU Zip compressed data