[Top][All Lists]

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

ylwrap fails with name-prefixed .l file

From: Jan Engelhardt
Subject: ylwrap fails with name-prefixed .l file
Date: Wed, 25 Mar 2009 00:08:57 +0100 (CET)
User-agent: Alpine 2.00 (LSU 1167 2008-08-23)


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.


reply via email to

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