[FFmpeg-devel] [PATCH] Improve eval.c:parse_primary() error message

Siarhei Siamashka siarhei.siamashka
Sat May 17 18:29:49 CEST 2008

On Saturday 17 May 2008, M?ns Rullg?rd wrote:
> Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
> > Hi, as in subject.
> >
> > BTW, I wonder, there is a particular reason for not using bison/some
> > other equivalent tool for these kind of parsings (it could be useful
> > also for the ffserver.conf file and for the filter graph)?
> >
> > (Maybe are you simply trying to avoid to depend on those other tools?)
> My experience with lex and yacc has been mostly good.  The one thing
> that bothers me is that the generated parsers are not reentrant,
> making it slightly tricky to use them in a library.
> I don't personally mind the tool dependencies, but I'm sure there
> would be many complaints from people running obscure operating systems
> where these tools are not available (or worse, buggy).
> As long as I'm not the one writing the parsers, I don't really care.

I had some experience using re2c [1] + lemon [2] in the past and liked 
these tools. AFAIK they can be used to generate parsers that are fully
reentrant and very fast.

1. http://sourceforge.net/projects/re2c
2. http://sqlite.org/

Best regards,
Siarhei Siamashka

More information about the ffmpeg-devel mailing list