automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ylwrap fails with name-prefixed .l file


From: Ralf Wildenhues
Subject: Re: ylwrap fails with name-prefixed .l file
Date: Thu, 26 Mar 2009 07:27:06 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Jan,

* Jan Engelhardt wrote on Wed, Mar 25, 2009 at 12:08:57AM CET:
> when a scanner.l file contains
> 
>       %option prefix="foo_"
> 
> flex will output to lex.foo_.c instead of lex.yy.c,
> causing ylwrap to fail
> 
>       (automake runs:)
>       /bin/sh ../ylwrap scanner.l lex.yy.c scanner.c -- flex  
> 
> How would one best proceed here? Especially when there are multiple 
> lexers/parsers possible, so just removing %option prefix is likely to 
> end in a link-time "double definition" error.

The Automake manual has a section to describe what to do with multiple
parsers.  Does that not work?

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]